Simplify spread

This commit is contained in:
toasted-nutbread 2020-02-15 12:55:21 -05:00
parent bc94970a46
commit 5587116bae

View File

@ -125,8 +125,7 @@ function dictTermsCompressTags(definitions) {
function dictTermsGroup(definitions, dictionaries) { function dictTermsGroup(definitions, dictionaries) {
const groups = new Map(); const groups = new Map();
for (const definition of definitions) { for (const definition of definitions) {
const key = [definition.source, definition.expression]; const key = [definition.source, definition.expression, ...definition.reasons];
key.push(...definition.reasons);
if (definition.reading) { if (definition.reading) {
key.push(definition.reading); key.push(definition.reading);
} }