2
0
mirror of https://github.com/gchq/CyberChef synced 2026-01-08 19:43:18 +00:00

Added code quality badge to README

This commit is contained in:
n1474335
2021-02-12 11:54:54 +00:00
parent 31a4eef001
commit 73b0e68993
2 changed files with 3 additions and 2 deletions

View File

@@ -896,7 +896,7 @@ class Utils {
while ((m = recipeRegex.exec(recipe))) {
// Translate strings in args back to double-quotes
args = m[2]
.replace(/"/g, '\\"') // Escape double quotes lgtm [js/incomplete-sanitization]
.replace(/"/g, '\\"') // Escape double quotes // lgtm [js/incomplete-sanitization]
.replace(/(^|,|{|:)'/g, '$1"') // Replace opening ' with "
.replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g, '$1"$2') // Replace closing ' with "
.replace(/\\'/g, "'"); // Unescape single quotes