Update common.js

Remove console.log from removeEscapes
This commit is contained in:
Billiam 2022-01-12 01:22:06 -06:00 committed by GitHub
parent 7a6d73762e
commit 748ee19b4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -18,8 +18,6 @@ export const removeEscapes = (text) => {
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(/\\[\d\d\d]{3}/gi, function (match) {
return String.fromCharCode(parseInt(match.replace(/\\/g, ''), 8));