Merge pull request #361 from catchonme/master

filter匹配不区分大小写
This commit is contained in:
liaoxuezhi 2019-11-27 10:14:12 +08:00 committed by GitHub
commit 94340fbcf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -257,10 +257,7 @@ export const filters: {
return input; return input;
} }
fn = value => fn = value => new RegExp(arg1, 'i').test(String(value));
!!~String(value)
.toLowerCase()
.indexOf(arg1);
} }
keys = keys.split(/\s*,\s*/); keys = keys.split(/\s*,\s*/);