From d7851c936fcdc11a1342d61a995924b617cd2a84 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Fri, 6 Mar 2020 17:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20equals=20=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tpl-builtin.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/tpl-builtin.ts b/src/utils/tpl-builtin.ts index 901a90c6..bef7f930 100644 --- a/src/utils/tpl-builtin.ts +++ b/src/utils/tpl-builtin.ts @@ -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';