aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-09 23:22:12 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-09 23:22:12 +0300
commit84420e00bfe025c93ed6ef77f81634687ff64764 (patch)
tree32fce6de324dde0d14f387f99d52625b87067fed /ext/bg
parent7b9ad61352dcb7ebaf8f3c5e5b2adeb32e14fae1 (diff)
merged mode: fix tags for non-main dictionaries
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/dictionary.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index b81d1411..25bcaf69 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -228,8 +228,10 @@ function dictTermsMergeByGloss(result, definitions, appendTo, mergedIndices) {
for (const tag of definition.tags) {
if (dictIsJmdictTermTag(tag)) {
result.expressions.get(definition.expression).get(definition.reading).add(tag);
- } else {
+ } else if (typeof tag === 'string') {
definitionsByGloss[gloss].tags.add(tag);
+ } else if (tag.category && tag.category !== 'dictionary') {
+ definitionsByGloss[gloss].tags.add(tag.name);
}
}
}