Skip to content

Commit

Permalink
Recipes with a single backslash argument are now parsed correctly. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
n1474335 committed Aug 19, 2018
1 parent 740f392 commit cb34518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "]";

Expand Down

0 comments on commit cb34518

Please sign in to comment.