🧹 fix false positive commented out code in registry.ts

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot] 2026-10-07 03:55:38 +00:00
parent bede889ced
commit 4be4d017da

View file

@ -331,7 +331,7 @@ function registerUnits(reg: Registry): LengthPhrase[] {
for (const ph of csPhrases) reg.addPhrase(ph, { t: "unit", unit: pUnit }, { caseSensitive: true }); for (const ph of csPhrases) reg.addPhrase(ph, { t: "unit", unit: pUnit }, { caseSensitive: true });
for (const ph of phrases) reg.addPhrase(ph, { t: "unit", unit: pUnit }, { caseSensitive: false }); for (const ph of phrases) reg.addPhrase(ph, { t: "unit", unit: pUnit }, { caseSensitive: false });
// collect unambiguous lowercase forms: "KM"/"Km" should still mean km, // collect unambiguous lowercase forms: "KM"/"Km" should still mean km,
// while "mm"/"Mm" stay strict (milli vs mega) // whereas "mm"/"Mm" stay strict (milli vs mega)
for (const ph of csPhrases) { for (const ph of csPhrases) {
const lower = ph.toLowerCase(); const lower = ph.toLowerCase();
const prev = lenientSym.get(lower); const prev = lenientSym.get(lower);