mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JavaScript: Deal with escape-unescape-escape (and similar) chains.
This commit is contained in:
@@ -130,3 +130,7 @@ function testWithCapturedVar(x) {
|
||||
captured = captured.replace(/\\/g, "\\\\");
|
||||
})();
|
||||
}
|
||||
|
||||
function cloneAndStringify(s) {
|
||||
return JSON.stringify(JSON.parse(JSON.stringify(s)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user