123456789101112131415161718 |
- /**
- * @returns {string}
- */
- export function DebugProtectionFunctionCallTemplate (): string {
- return `
- (function () {
- var regExp1 = new RegExp('function *\\\\( *\\\\)');
- var regExp2 = new RegExp('\\\\+\\\\+ *\\(?:_0x([a-f0-9]){4,6}|\\\\b[a-zA-Z]{1,2}\\\\b\\)');
- var result = {debugProtectionFunctionName}('init');
-
- if (!regExp1.test(result + 'chain') || !regExp2.test(result + 'input')) {
- result('0');
- } else {
- {debugProtectionFunctionName}();
- }
- })();
- `;
- }
|