Update SERVER_JS_DEFINE_REGEX

This commit is contained in:
Mads Marquart
2020-06-07 11:58:40 +02:00
parent b1e438dae1
commit 6141cc5a41
2 changed files with 18 additions and 2 deletions

View File

@@ -15,7 +15,9 @@ from . import _graphql, _util, _exception
from typing import Optional, Mapping, Callable, Any
SERVER_JS_DEFINE_REGEX = re.compile(r'require\("ServerJSDefine"\)\)?\.handleDefines\(')
SERVER_JS_DEFINE_REGEX = re.compile(
r'require(?:\("ServerJS"\).{,100}\.handle\({.*"define":)|(?:\("ServerJSDefine"\)\)?\.handleDefines\()'
)
SERVER_JS_DEFINE_JSON_DECODER = json.JSONDecoder()