From f51eb9d8326404708e38b92cea2043d7f4185b7c Mon Sep 17 00:00:00 2001 From: fofolee Date: Wed, 1 Jun 2022 10:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=AF=E5=BE=84=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=8F=8D=E6=96=9C=E6=9D=A0=E6=9C=AA=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E8=BD=AC=E4=B9=89=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/options/specialVars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/options/specialVars.js b/src/js/options/specialVars.js index 399062e..731aa8b 100644 --- a/src/js/options/specialVars.js +++ b/src/js/options/specialVars.js @@ -4,7 +4,7 @@ let escapeItem = item => { if (typeof item === 'number') return item - item = typeof item === 'object' ? JSON.stringify(item) : item.replace('\\', '\\\\') + item = typeof item === 'object' ? JSON.stringify(item) : item.replace(/\\/g, '\\\\') return item.replace('$', '$$$') }