Skip to content

Commit a3a9da3

Browse files
committed
取消自定义屏蔽词中大小写敏感 #207
1 parent 3769e0a commit a3a9da3

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- fix: 修复删除标签用户时逻辑错位的问题
1+
- feat: 取消自定义屏蔽词中大小写敏感 #207

entrypoints/components/CustomText/MenuBlockKeyword.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ export default {
4949
// 检查话题标题
5050
$(".topic-list .main-link .raw-topic-link>*")
5151
.filter((index, element) => {
52-
const text = $(element).text();
53-
return keywords.some((keyword) => text.includes(keyword));
52+
const text = $(element).text().toLowerCase();
53+
return keywords.some((keyword) => text.includes(keyword.toLowerCase()));
5454
})
5555
.parents("tr.topic-list-item")
5656
.remove();
5757
5858
// 检查评论回复
5959
$(".topic-body .cooked")
6060
.filter((index, element) => {
61-
const text = $(element).text();
62-
return keywords.some((keyword) => text.includes(keyword));
61+
const text = $(element).text().toLowerCase();
62+
return keywords.some((keyword) => text.includes(keyword.toLowerCase()));
6363
})
6464
.parents(".topic-post")
6565
.remove();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "linuxdo-scripts",
33
"description": "manifest.json description",
44
"private": true,
5-
"version": "1.2.3",
5+
"version": "1.2.4",
66
"type": "module",
77
"scripts": {
88
"dev": "wxt",

version-log.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.4
2+
3+
- feat: 取消自定义屏蔽词中大小写敏感 #207
4+
15
## 1.2.3
26

37
- fix: 修复删除标签用户时逻辑错位的问题

0 commit comments

Comments
 (0)