ben-sb / javascript-deobfuscator

General purpose JavaScript deobfuscator
https://deobfuscate.io
Apache License 2.0
786 stars 112 forks source link

Handle arithmetic double negation #38

Closed Semnodime closed 1 year ago

Semnodime commented 1 year ago

0 - - 4 should optionally be refactored to 4 0 - - - - 4 should optionally be refactored to 4

ben-sb commented 1 year ago

This should already be handled, can you send details on your setup? Works as intended on the web version

Screenshot 2023-05-11 at 22 14 04
Semnodime commented 1 year ago

0 - - - - 4 should optionally be refactored to 4

Semnodime commented 1 year ago

so goes for any arithmatic chain of + with - irrespective of its length.

ben-sb commented 1 year ago

Should be fixed in latest commit

Semnodime commented 1 year ago

@ben-sb When will it go live in https://deobfuscate.io/ ?

ben-sb commented 1 year ago

I updated the website at the same time as updating the repo so should have been live since then. Works for me with the example you sent, 0 - - - - 4