merged mode: fix tags for non-main dictionaries

This commit is contained in:
siikamiika 2017-10-09 23:22:12 +03:00
parent 7b9ad61352
commit 84420e00bf

View File

@ -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);
}
}
}