summaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/dictionary.js')
-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);
}
}
}