mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 15:42:01 +03:00
🧹 fix false positive commented out code in registry.ts
Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
This commit is contained in:
parent
bede889ced
commit
4be4d017da
1 changed files with 1 additions and 1 deletions
|
|
@ -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 phrases) reg.addPhrase(ph, { t: "unit", unit: pUnit }, { caseSensitive: false });
|
||||
// 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) {
|
||||
const lower = ph.toLowerCase();
|
||||
const prev = lenientSym.get(lower);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue