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:
J
2026-06-17 17:04:58 +08:00
parent 86a93888dc
commit 8a7e3748ec

View File

@@ -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')