From 8348a36f24fcc9b01584a8fb2d895db95de82283 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Tue, 13 May 2025 22:58:24 -0400 Subject: cleanup, simplify, and merge duplicate word mute implementations --- packages/frontend/src/components/SkPatternTest.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/frontend/src/components/SkPatternTest.vue') diff --git a/packages/frontend/src/components/SkPatternTest.vue b/packages/frontend/src/components/SkPatternTest.vue index 2ed2b3fdc3..fe82c1df2f 100644 --- a/packages/frontend/src/components/SkPatternTest.vue +++ b/packages/frontend/src/components/SkPatternTest.vue @@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.wordMuteTestTest }}
-
{{ i18n.ts.wordMuteTestNoResults}}
+
{{ i18n.ts.wordMuteTestNoResults }}
{{ i18n.ts.wordMuteTestNoMatch }}
{{ i18n.tsx.wordMuteTestMatch({ words: testMatches }) }}
@@ -44,7 +44,7 @@ function testWordMutes() { try { const mutes = parseMutes(props.mutedWords); const matches = checkWordMute(testWords.value, null, mutes); - testMatches.value = matches ? matches.flat(2).join(', ') : ''; + testMatches.value = matches ? matches.join(', ') : ''; } catch { // Error is displayed by above function testMatches.value = null; -- cgit v1.2.3-freya