From d0aec7adf6e9e6d9ba5a92814e7190c964fc4ab8 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Tue, 20 Apr 2021 16:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfilter=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B8=AD=E5=AD=98=E5=9C=A8=E5=8F=98=E9=87=8F=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=B3=95=E9=97=AE=E9=A2=98=20(#1833)?= 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 3a41fc0c8..273e33b5c 100644 --- a/src/utils/tpl-builtin.ts +++ b/src/utils/tpl-builtin.ts @@ -718,7 +718,7 @@ export const resolveVariableAndFilter = ( // 先只支持一层吧 finalKey = finalKey.replace( - /(\\|\\\$)?\$(?:((?:\w+\:)?[a-zA-Z0-9_.][a-zA-Z0-9_.\[\]]*)|{([^}{]+)})/g, + /(\\|\\\$)?\$(?:([a-zA-Z0-9_.][a-zA-Z0-9_.\[\]]*)|{([^}{]+)})/g, (_, escape) => { return escape ? _.substring(1)