Added additional self defending mechanisms. Updated tests

This commit is contained in:
sanex
2021-08-01 16:58:04 +03:00
parent 9da81caf3d
commit c4abec8c2a
31 changed files with 785 additions and 320 deletions
@@ -84,8 +84,8 @@ describe('StringArrayRotateFunctionCodeHelper', () => {
});
describe('Preserve string array name', () => {
const arrayRotateRegExp: RegExp = /c\['push']\(c\['shift']\(\)\);/;
const comparisonRegExp: RegExp = /if *\(e *=== *d\) *{/;
const arrayRotateRegExp: RegExp = /e\['push']\(e\['shift']\(\)\);/;
const comparisonRegExp: RegExp = /if *\(f *=== *d\) *{/;
let obfuscatedCode: string;