浏览代码

Added functional tests for dictionary names generator: fixed regExp

sanex3339 5 年之前
父节点
当前提交
19ebf787f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts

+ 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;