From cb34518a897ce0b0c0dd24b3e7bc1e0bf2f7d991 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Mon, 20 Aug 2018 00:26:44 +0100 Subject: [PATCH] Recipes with a single backslash argument are now parsed correctly. Fixes #319 --- src/core/Utils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Utils.mjs b/src/core/Utils.mjs index ec93cdc41f..ab3d428180 100755 --- a/src/core/Utils.mjs +++ b/src/core/Utils.mjs @@ -774,7 +774,7 @@ class Utils { args = m[2] .replace(/"/g, '\\"') // Escape double quotes .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 args = "[" + args + "]";