Merge pull request #317 from catchonme/master

修复filter过滤失败问题
This commit is contained in:
liaoxuezhi 2019-10-30 16:16:08 +08:00 committed by GitHub
commit a631fc12eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ export const filters: {
arg1 = expOrDirective;
}
arg1 = arg1 ? (/^('|")(.*)\1$/.test(arg1) ? RegExp.$2 : resolveVariable(arg1, this as any)) : '';
fn = value => !!~String(value.toLowerCase()).indexOf(arg1);
fn = value => !!~String(value).toLowerCase().indexOf(arg1);
}
keys = keys.split(/\s*,\s*/);