Browse Source

Updated self defending template #4

sanex 3 years ago
parent
commit
89324521d0

File diff suppressed because it is too large
+ 0 - 0
dist/index.browser.js


File diff suppressed because it is too large
+ 0 - 0
dist/index.cli.js


File diff suppressed because it is too large
+ 0 - 0
dist/index.js


+ 1 - 1
src/custom-code-helpers/self-defending/templates/SelfDefendingNoEvalTemplate.ts

@@ -9,7 +9,7 @@ export function SelfDefendingNoEvalTemplate (): string {
             {globalVariableTemplate}
         
             return that
-                .RegExp('(.*)+\\\\S}')
+                .RegExp('(.*)+.*}')
                 .test({selfDefendingFunctionName});
         });
         

+ 1 - 1
src/custom-code-helpers/self-defending/templates/SelfDefendingTemplate.ts

@@ -9,7 +9,7 @@ export function SelfDefendingTemplate (): string {
             return {selfDefendingFunctionName}
                 .constructor('return /" + this + "/')
                 .call()
-                .constructor('(.*)+\\\\S}')
+                .constructor('(.*)+.*}')
                 .test({selfDefendingFunctionName});
         });
         

Some files were not shown because too many files changed in this diff