chore: generate
This commit is contained in:
parent
78a5a030ce
commit
f8ceb30b43
3 changed files with 7 additions and 3 deletions
|
|
@ -7,7 +7,9 @@ export function inlineCodeKind(text: string): "path" | "url" | undefined {
|
|||
if (
|
||||
/[/\\]/.test(text) ||
|
||||
/^\.\.?[/\\]/.test(text) ||
|
||||
/\.(tsx?|jsx?|json|py|go|rs|rb|php|css|html|md|sh|ya?ml|toml|sql|c|cpp|h|java|kt|swift|scala|xml|png|jpe?g|gif|svg|ico)$/i.test(text)
|
||||
/\.(tsx?|jsx?|json|py|go|rs|rb|php|css|html|md|sh|ya?ml|toml|sql|c|cpp|h|java|kt|swift|scala|xml|png|jpe?g|gif|svg|ico)$/i.test(
|
||||
text,
|
||||
)
|
||||
)
|
||||
return "path"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue