Updated self defending template #5

This commit is contained in:
sanex
2021-07-23 22:06:04 +03:00
parent 89324521d0
commit d6d46bef37
6 changed files with 6 additions and 5 deletions
+1
View File
@@ -11,3 +11,4 @@ npm-debug.log
/tmp
/test/benchmark/**/**
*dockerfile
/test*.js
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -9,7 +9,7 @@ export function SelfDefendingNoEvalTemplate (): string {
{globalVariableTemplate}
return that
.RegExp('(.*)+.*}')
.RegExp('((.*)+)+$')
.test({selfDefendingFunctionName});
});
@@ -9,7 +9,7 @@ export function SelfDefendingTemplate (): string {
return {selfDefendingFunctionName}
.constructor('return /" + this + "/')
.call()
.constructor('(.*)+.*}')
.constructor('((.*)+)+$')
.test({selfDefendingFunctionName});
});