优化 equals 的判断

This commit is contained in:
2betop 2020-03-06 17:49:12 +08:00
parent 9183161936
commit d7851c936f
1 changed files with 1 additions and 4 deletions

View File

@ -244,10 +244,7 @@ export const filters: {
? RegExp.$2
: resolveVariable(arg1, this as any)
: '';
if (arg1 !== undefined && arg1 !== null) {
return input;
}
fn = value => arg1 === value;
fn = value => arg1 == value;
} else {
if (directive !== 'match') {
directive = 'match';