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 31413df920
1 changed files with 1 additions and 4 deletions

View File

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