diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-10 06:04:49 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-10 06:04:49 +0300 |
commit | e1c5d7a401f1f974da1bedd8600524d982c2c7de (patch) | |
tree | e2d3220a0b2c879d53f834f04dd897feab129fc6 /ext/bg/js | |
parent | b9d589374cd2105c195a8c41d71c459a53c0fae3 (diff) |
merged mode: make gloss hash more unique
Use ['gloss', 'ary'].concat('DictName')
Known collision: 日本国有鉄道 in JMdict and JMnedict
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/dictionary.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js index 25bcaf69..b6ca6fd5 100644 --- a/ext/bg/js/dictionary.js +++ b/ext/bg/js/dictionary.js @@ -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(), |