aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-10 06:04:49 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-10 06:04:49 +0300
commite1c5d7a401f1f974da1bedd8600524d982c2c7de (patch)
treee2d3220a0b2c879d53f834f04dd897feab129fc6 /ext/bg/js
parentb9d589374cd2105c195a8c41d71c459a53c0fae3 (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.js2
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(),