mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 13:29:44 +02:00
docs(markdown): drop inaccurate .io example from bare-filename comment
io is not in the FILE_EXTENSIONS list, so .io domains are never suppressed. Listing it as an example was misleading. Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -25,7 +25,7 @@ const FILE_PATH_REGEX = new RegExp(
|
||||
// A bare filename token like "plan.md" or "vite.config.ts": a single path
|
||||
// segment ending in a known file extension, with no slash, scheme, or port.
|
||||
// linkify-it fuzzy-matches these as domains because several of the extensions
|
||||
// (md, io, sh, rs, py, …) are also valid TLDs. We use this to stop bare
|
||||
// (md, sh, rs, py, …) are also valid TLDs. We use this to stop bare
|
||||
// filenames from being auto-linked to dead external sites like https://plan.md.
|
||||
const BARE_FILENAME_REGEX = new RegExp(`^[\\w.-]+\\.(?:${FILE_EXTENSIONS})$`, 'i')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user