From 8ac6dc4ae682cdc1cf26379f9737e788c6c0d269 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sun, 14 Jun 2020 22:27:26 +0200 Subject: [PATCH] Update SERVER_JS_DEFINE_REGEX, so logging in on newer FB versions work --- fbchat/_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbchat/_session.py b/fbchat/_session.py index 6389eaca..cda8e0de 100644 --- a/fbchat/_session.py +++ b/fbchat/_session.py @@ -16,7 +16,7 @@ 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()