修复filter过滤失败问题

This commit is contained in:
catchonme 2019-10-30 16:13:27 +08:00
parent bd2e8f1b35
commit 6283b48a47

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*/);