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