chore: generate

This commit is contained in:
opencode-agent[bot]
2026-07-01 00:53:45 +00:00
parent ae3fefb42a
commit 439ec9b76f

View File

@@ -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)) if (/[/\\]/.test(text) || /^\.\.?[/\\]/.test(text) || hasPathExtension(text) || hasPathFileName(text)) return "path"
return "path"
} }
function hasPathExtension(text: string) { function hasPathExtension(text: string) {