diff --git a/dev/Sieve/Model/Script.js b/dev/Sieve/Model/Script.js index 9747ec931..1dba27eab 100644 --- a/dev/Sieve/Model/Script.js +++ b/dev/Sieve/Model/Script.js @@ -17,7 +17,7 @@ function filtersToSieveScript(filters) '' ]; - const quote = string => '"' + string.trim().replace(/(\\|")/, '\\\\$1') + '"'; + const quote = string => '"' + string.trim().replace(/(\\|")/g, '\\$1') + '"'; const StripSpaces = string => string.replace(/\s+/, ' ').trim(); // conditionToSieveScript