Skip to content

Commit

Permalink
Update javascriptobfuscator_unpacker.js
Browse files Browse the repository at this point in the history
Fixes issue beautifier#1350 by properly identifying obfuscated text
  • Loading branch information
Donovan55 committed Oct 2, 2022
1 parent aa82eb9 commit 3c2ac28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/unpackers/javascriptobfuscator_unpacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

var JavascriptObfuscator = {
detect: function(str) {
return /^var _0x[a-f0-9]+ ?\= ?\[/.test(str);
return /^var _0x[a-f0-9]+ ?\= ?\[[\"|\'][\\][x]/.test(str);
},

unpack: function(str) {
Expand Down

0 comments on commit 3c2ac28

Please sign in to comment.