Explorar o código

Added functional tests for dictionary names generator: fixed regExp #2

sanex3339 %!s(int64=5) %!d(string=hai) anos
pai
achega
617f85e40d

+ 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|B] *= *0x3;/;
+            const regExp: RegExp = /var *[ab] *= *0x1; *var *[ab] *= *0x2; *var *[AB] *= *0x3;/;
 
             let obfuscatedCode: string;