Update SERVER_JS_DEFINE_REGEX, so logging in on newer FB versions work

This commit is contained in:
Mads Marquart
2020-06-14 22:27:26 +02:00
parent a6cf1d5c89
commit 8ac6dc4ae6

View File

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