mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
Merge pull request #154 from richex-cn/fix-web-case-sensitive
fix: 修复无法搜索大写字母的问题
This commit is contained in:
commit
479f5d3f6e
@ -185,7 +185,7 @@ export default {
|
||||
|
||||
search() {
|
||||
if ('' !== this.keyword) {
|
||||
this.rules = this.rules.filter(({ title }) => -1 !== title.indexOf(this.keyword.toLowerCase()));
|
||||
this.rules = this.rules.filter(({ title }) => -1 !== title.toLowerCase().indexOf(this.keyword.toLowerCase()));
|
||||
} else {
|
||||
this.rules = RULES;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user