forked from baron/baron-sso
fix: align report.js logic with index.js to resolve i18n check failure
This commit is contained in:
@@ -76,11 +76,16 @@ function parseTomlKeys(filePath) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const key = line.slice(0, eqIndex).trim();
|
let key = line.slice(0, eqIndex).trim();
|
||||||
if (!key) {
|
if (!key) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Strip quotes if present
|
||||||
|
if (key.startsWith('"') && key.endsWith('"')) {
|
||||||
|
key = key.slice(1, -1);
|
||||||
|
}
|
||||||
|
|
||||||
const fullKey = [...currentSection, key].join('.');
|
const fullKey = [...currentSection, key].join('.');
|
||||||
keys.add(fullKey);
|
keys.add(fullKey);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user