mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Recipes with a single backslash argument are now parsed correctly. Fixes #319
This commit is contained in:
parent
740f3924df
commit
cb34518a89
1 changed files with 1 additions and 1 deletions
|
@ -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 + "]";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue