fix(client): word mute cannot save
This commit is contained in:
parent
c07e4c3476
commit
0ab59a10b3
|
@ -10,6 +10,14 @@
|
||||||
You should also include the user name that made the change.
|
You should also include the user name that made the change.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## 12.x.x (unreleased)
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
-
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
- クライアント: ワードミュートが保存できない問題を修正 @syuilo
|
||||||
|
|
||||||
## 12.106.0 (2022/02/11)
|
## 12.106.0 (2022/02/11)
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|
|
@ -102,7 +102,7 @@ export default defineComponent({
|
||||||
let lines = mutes.trim().split('\n').map(line => line.trim()).filter(line => line != '');
|
let lines = mutes.trim().split('\n').map(line => line.trim()).filter(line => line != '');
|
||||||
|
|
||||||
// check each line if it is a RegExp or not
|
// 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 line = lines[i]
|
||||||
const regexp = line.match(/^\/(.+)\/(.*)$/);
|
const regexp = line.match(/^\/(.+)\/(.*)$/);
|
||||||
if (regexp) {
|
if (regexp) {
|
||||||
|
@ -124,6 +124,8 @@ export default defineComponent({
|
||||||
lines[i] = line.split(' ');
|
lines[i] = line.split(' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return lines;
|
||||||
};
|
};
|
||||||
|
|
||||||
let softMutes, hardMutes;
|
let softMutes, hardMutes;
|
||||||
|
|
Loading…
Reference in New Issue