Explorar o código

Added functional tests for dictionary names generator: fixed regExp

sanex3339 %!s(int64=5) %!d(string=hai) anos
pai
achega
19ebf787f7

+ 1 - 1
test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts

@@ -570,7 +570,7 @@ describe('JavaScriptObfuscator', () => {
         });
 
         describe('dictionary identifier names generator', () => {
-            const regExp: RegExp = /var *[ab] *= *0x1; *var *[ab] *= *0x2; *var *A *= *0x3;/;
+            const regExp: RegExp = /var *[ab] *= *0x1; *var *[ab] *= *0x2; *var *[A|B] *= *0x3;/;
 
             let obfuscatedCode: string;