From 53d6d2d21ffc5e696d68d04d5cd27249c8d8eefe Mon Sep 17 00:00:00 2001 From: undefined <33629016+magicFeirl@users.noreply.github.com> Date: Wed, 15 Jan 2025 19:04:36 +0800 Subject: [PATCH] Update javascript/tagAutocomplete.js Co-authored-by: DominikDoom <34448969+DominikDoom@users.noreply.github.com> --- javascript/tagAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index ffe17f5..b4fbcd9 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -690,7 +690,7 @@ function addResultsToList(textArea, results, tagword, resetList) { }).map(tag => tag.replaceAll(" ", "_").replaceAll("\\(", "(").replaceAll("\\)", ")")) // Split tags by `,` and count tag - for(const tag of unsanitizedTags) { + for (const tag of unsanitizedTags) { tagCount[tag] = tagCount[tag] ? tagCount[tag] + 1 : 1 } }