mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 15:42:01 +03:00
Merge e299e58eb4 into bede889ced
This commit is contained in:
commit
3a628521f2
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ export class Registry {
|
|||
const list = this.byFirst.get(key);
|
||||
if (list) {
|
||||
// first registration of an identical phrase wins (core vocab is added first)
|
||||
if (list.some((e) => e.caseSensitive === caseSensitive && (caseSensitive ? e.lexemes.join(" ") === lexemes.join(" ") : e.lower.join(" ") === entry.lower.join(" ")))) {
|
||||
if (list.some((e) => e.caseSensitive === caseSensitive && e.lexemes.length === lexemes.length && (caseSensitive ? e.lexemes.every((l, i) => l === lexemes[i]) : e.lower.every((l, i) => l === entry.lower[i])))) {
|
||||
return;
|
||||
}
|
||||
list.push(entry);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue