Simplify spread
This commit is contained in:
parent
bc94970a46
commit
5587116bae
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user