From 9cba1319ca2104f67dcf2e5eacba325079fb33e7 Mon Sep 17 00:00:00 2001 From: "zebin.wu" Date: Tue, 6 Jul 2021 10:39:09 +0800 Subject: [PATCH] fix eslint error fix:eslint error --- src/utils/tpl-lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/tpl-lodash.js b/src/utils/tpl-lodash.js index 86887040..de41548b 100644 --- a/src/utils/tpl-lodash.js +++ b/src/utils/tpl-lodash.js @@ -44,7 +44,7 @@ function lodashCompile(str, data) { export function register() { return { name: 'lodash', - test: (str) => !!~str.indexOf('<%'), + test: (str) => Boolean(str.indexOf('<%') > -1), compile: (str, data) => lodashCompile(str, data) }; }