From 0ab59a10b32a7701f9c30ddf58b9dbf74551398f Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 11 Feb 2022 19:44:56 +0900 Subject: [PATCH] fix(client): word mute cannot save --- CHANGELOG.md | 8 ++++++++ packages/client/src/pages/settings/word-mute.vue | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b1ac4fb0..85000e579 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,14 @@ You should also include the user name that made the change. --> +## 12.x.x (unreleased) + +### Improvements +- + +### Bugfixes +- クライアント: ワードミュートが保存できない問題を修正 @syuilo + ## 12.106.0 (2022/02/11) ### Improvements diff --git a/packages/client/src/pages/settings/word-mute.vue b/packages/client/src/pages/settings/word-mute.vue index bdccd7f1e..2767e6351 100644 --- a/packages/client/src/pages/settings/word-mute.vue +++ b/packages/client/src/pages/settings/word-mute.vue @@ -102,7 +102,7 @@ export default defineComponent({ let lines = mutes.trim().split('\n').map(line => line.trim()).filter(line => line != ''); // check each line if it is a RegExp or not - for(let i = 0; i < lines.length; i++) { + for (let i = 0; i < lines.length; i++) { const line = lines[i] const regexp = line.match(/^\/(.+)\/(.*)$/); if (regexp) { @@ -124,6 +124,8 @@ export default defineComponent({ lines[i] = line.split(' '); } } + + return lines; }; let softMutes, hardMutes;