Skip to content

Commit 8ac6dc4

Browse files
committed
Update SERVER_JS_DEFINE_REGEX, so logging in on newer FB versions work
1 parent a6cf1d5 commit 8ac6dc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fbchat/_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
SERVER_JS_DEFINE_REGEX = re.compile(
19-
r'require(?:\("ServerJS"\).{,100}\.handle\({.*"define":)|(?:\("ServerJSDefine"\)\)?\.handleDefines\()'
19+
r'(?:"ServerJS".{,100}\.handle\({.*"define":)|(?:require\("ServerJSDefine"\)\)?\.handleDefines\()'
2020
)
2121
SERVER_JS_DEFINE_JSON_DECODER = json.JSONDecoder()
2222

0 commit comments

Comments
 (0)