Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Fix handling multiple mentions in a Messenger message. Fixes #144
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Mar 23, 2021
1 parent 8e0e74a commit 3867b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_facebook/formatter/from_facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
_TEXT_NO_SURROUNDING_SPACE = r"(?:[^\s].*?[^\s])|[^\s]"
COMMON_REGEX = re.compile(rf"({_START})([_~*])({_TEXT_NO_SURROUNDING_SPACE})\2({_END})")
INLINE_CODE_REGEX = re.compile(rf"({_START})(`)(.+?)`({_END})")
MENTION_REGEX = re.compile(r"@([0-9]{1,15})\u2063(.+)\u2063")
MENTION_REGEX = re.compile(r"@([0-9]{1,15})\u2063(.+?)\u2063")

tags = {
"_": "em",
Expand Down

0 comments on commit 3867b0b

Please sign in to comment.