From edb7b38e0c1f76d7c3d3f01311ddbe7b41220962 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 22 Aug 2022 22:10:09 +0200 Subject: [PATCH] Resolve #494 --- dev/Sieve/Model/Script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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