Merge pull request #2 from gchq/master

Bring branch up to date with gchq/master
This commit is contained in:
j433866
2019-05-10 09:09:58 +01:00
committed by GitHub
4 changed files with 1024 additions and 603 deletions
+1 -1
View File
@@ -836,7 +836,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 + "]";