mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 05:43:30 +00:00
chore: generate
This commit is contained in:
parent
ae3fefb42a
commit
439ec9b76f
1 changed files with 1 additions and 2 deletions
|
|
@ -1895,8 +1895,7 @@ export function inlineCodeKind(text: string): "path" | "url" | undefined {
|
|||
if (/^\/[a-z][a-z0-9-]*$/i.test(text)) return
|
||||
if (/\s/.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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue