fix(frontend): normalize style guard paths

main
dajiaohuang 2026-09-29 16:04:47 +08:00 committed by lyingbug
parent f46c990567
commit 75d2c1b583
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ function countMatches(rule) {
let total = 0
for (const dir of SCAN_DIRS) {
for (const file of walk(join(SRC_ROOT, dir))) {
const rel = relative(SRC_ROOT, file)
const rel = relative(SRC_ROOT, file).replaceAll('\\', '/')
if (EXEMPT_FILES.has(rel)) continue
const text = readFileSync(file, 'utf8')
const n = (text.match(rule.pattern) ?? []).length