1
0
mirror of synced 2024-11-28 08:30:48 +01:00

Recipes with a single backslash argument are now parsed correctly. Fixes #319

This commit is contained in:
n1474335 2018-08-20 00:26:44 +01:00
parent 740f3924df
commit cb34518a89

View File

@ -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 + "]";