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
commit 802879ced2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1024 additions and 603 deletions

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