opencode-agent[bot] 2 месяцев назад
Родитель
Сommit
439ec9b76f
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      packages/session-ui/src/components/markdown-inline-code-kind.ts

+ 1 - 2
packages/session-ui/src/components/markdown-inline-code-kind.ts

@@ -1895,8 +1895,7 @@ export function inlineCodeKind(text: string): "path" | "url" | undefined {
   if (/^\/[a-z][a-z0-9-]*$/i.test(text)) return
   if (/^\/[a-z][a-z0-9-]*$/i.test(text)) return
   if (/\s/.test(text)) return
   if (/\s/.test(text)) return
   if (/[()\[\]{}*+=<>|&^"';]/.test(text)) return
   if (/[()\[\]{}*+=<>|&^"';]/.test(text)) return
-  if (/[/\\]/.test(text) || /^\.\.?[/\\]/.test(text) || hasPathExtension(text) || hasPathFileName(text))
-    return "path"
+  if (/[/\\]/.test(text) || /^\.\.?[/\\]/.test(text) || hasPathExtension(text) || hasPathFileName(text)) return "path"
 }
 }
 
 
 function hasPathExtension(text: string) {
 function hasPathExtension(text: string) {