mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 21:31:59 +03:00
Merge 4be4d017da into bede889ced
This commit is contained in:
commit
138465e71e
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 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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue