Skip to content

Commit a3dd3ee

Browse files
committed
Sanity-safe comment in em-dash lint script
The earlier comment contained '/home/...' as an example, which trips the sanity-regex check for unix home paths. Reword without the example.
1 parent c27f21d commit a3dd3ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/check-em-dashes.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { fileURLToPath } from "node:url";
99
const ROOT = process.cwd();
1010
const TARGETS = [".md", ".ts", ".mts", ".cts", ".mjs"];
1111
const SKIP = new Set(["node_modules", "dist", ".git", ".openwar", "coverage"]);
12-
// fileURLToPath handles both Windows (file:///C:/...) and unix (file:///home/...)
13-
// URL shapes correctly; the prior manual leading-slash strip was Windows-only.
12+
// fileURLToPath handles both Windows and POSIX URL shapes correctly;
13+
// the prior manual leading-slash strip happened to pass on Windows only.
1414
const SELF = relative(ROOT, fileURLToPath(import.meta.url));
1515

1616
const offenders = [];

0 commit comments

Comments
 (0)