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('$', '$$$') }