Merge pull request #2621 from Billiam/bugfix/console-log

Remove console.log from common.js
This commit is contained in:
Knut Sveidqvist
2022-01-18 22:57:04 +01:00
committed by GitHub

View File

@@ -18,8 +18,6 @@ export const removeEscapes = (text) => {
return String.fromCharCode(parseInt(match.replace(/\\u/g, ''), 16)); return String.fromCharCode(parseInt(match.replace(/\\u/g, ''), 16));
}); });
console.log(newStr);
newStr = newStr.replace(/\\x([0-9a-f]{2})/gi, (_, c) => String.fromCharCode(parseInt(c, 16))); newStr = newStr.replace(/\\x([0-9a-f]{2})/gi, (_, c) => String.fromCharCode(parseInt(c, 16)));
newStr = newStr.replace(/\\[\d\d\d]{3}/gi, function (match) { newStr = newStr.replace(/\\[\d\d\d]{3}/gi, function (match) {
return String.fromCharCode(parseInt(match.replace(/\\/g, ''), 8)); return String.fromCharCode(parseInt(match.replace(/\\/g, ''), 8));