Browse Source

Added functional tests for dictionary names generator: fixed regExp

sanex3339 5 năm trước cách đây
mục cha
commit
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;