merged mode: make gloss hash more unique

Use ['gloss', 'ary'].concat('DictName')
Known collision: 日本国有鉄道 in JMdict and JMnedict
This commit is contained in:
siikamiika 2017-10-10 06:04:49 +03:00
parent b9d589374c
commit e1c5d7a401

View File

@ -196,7 +196,7 @@ function dictTermsMergeByGloss(result, definitions, appendTo, mergedIndices) {
}
}
const gloss = JSON.stringify(definition.glossary);
const gloss = JSON.stringify(definition.glossary.concat(definition.dictionary));
if (!definitionsByGloss[gloss]) {
definitionsByGloss[gloss] = {
expression: new Set(),