fix(frontend): normalize style guard paths
parent
f46c990567
commit
75d2c1b583
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue