From 6283b48a4773d1eb80f47c3d5853df9b163a6160 Mon Sep 17 00:00:00 2001 From: catchonme Date: Wed, 30 Oct 2019 16:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfilter=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tpl-builtin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/tpl-builtin.ts b/src/utils/tpl-builtin.ts index 1ff143bfe..3b731eea7 100644 --- a/src/utils/tpl-builtin.ts +++ b/src/utils/tpl-builtin.ts @@ -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*/);