mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Merge branch 'j433866-load-recipe-fix'
This commit is contained in:
@@ -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 + "]";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user