ソースを参照

Updated self defending template #4

sanex 3 年 前
コミット
89324521d0

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.browser.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.cli.js


ファイルの差分が大きいため隠しています
+ 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});
         });
         

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません