Browse Source

Merge branch 'j433866-load-recipe-fix'

j433866 6 years ago
parent
commit
144601ffd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/Utils.mjs

+ 1 - 1
src/core/Utils.mjs

@@ -836,7 +836,7 @@ class Utils {
             args = m[2]
             args = m[2]
                 .replace(/"/g, '\\"') // Escape double quotes
                 .replace(/"/g, '\\"') // Escape double quotes
                 .replace(/(^|,|{|:)'/g, '$1"') // Replace opening ' with "
                 .replace(/(^|,|{|:)'/g, '$1"') // Replace opening ' with "
-                .replace(/([^\\]|[^\\]\\\\)'(,|:|}|$)/g, '$1"$2') // Replace closing ' with "
+                .replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g, '$1"$2') // Replace closing ' with "
                 .replace(/\\'/g, "'"); // Unescape single quotes
                 .replace(/\\'/g, "'"); // Unescape single quotes
             args = "[" + args + "]";
             args = "[" + args + "]";