From 1387351d4dfe55898667463674c0feeccdb00d90 Mon Sep 17 00:00:00 2001 From: sgmklp <2394501736@qq.com> Date: Mon, 17 Oct 2022 11:07:54 +0800 Subject: [PATCH] add match by class --- javascript/tagAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index e164f40..3aad781 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -533,7 +533,7 @@ onUiUpdate(function () { } else { extras.forEach(e => { // Check if a tag in allTags has the same name as the extra tag - if (tag = allTags.find(t => t[0] === e[0])) { + if (tag = allTags.find(t => t[0] === e[0] && t[1] == e[1])) { if (e[2]) // If the extra tag has a translation, add it to the tag tag[2] = e[2]; } else {