mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
dev
This commit is contained in:
Vendored
+1
-1
@@ -42,7 +42,7 @@ class Utils {
|
||||
}
|
||||
static stringToUnicode(string) {
|
||||
const radix = 16, unicodeSliceValue = -4;
|
||||
let regexp = new RegExp('[a-zA-Z]');
|
||||
let regexp = new RegExp('[\x00-\x7F]');
|
||||
return `'${string.replace(/[\s\S]/g, (escape) => {
|
||||
if (regexp.test(escape)) {
|
||||
return '\\x' + escape.charCodeAt(0).toString(radix);
|
||||
|
||||
Reference in New Issue
Block a user