Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(frontend): normalize style guard paths

dajiaohuang75d2c1b58343
diff --git a/frontend/src/assets/theme/styleGuard.test.mjs b/frontend/src/assets/theme/styleGuard.test.mjs
index 7814b474e..a11db3f69 100644
--- a/frontend/src/assets/theme/styleGuard.test.mjs
+++ b/frontend/src/assets/theme/styleGuard.test.mjs
@@ -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