Fix: (ement-room--format-body-mentions) Regexp

This commit is contained in:
Adam Porter 2022-05-09 10:20:07 -05:00
parent f233141d8d
commit 7abf04dd0e

View file

@ -1440,7 +1440,7 @@ the content (e.g. see `ement-room-send-org-filter')."
(pos 0)
replacement)
(while (setf pos (string-match (rx (or bos bow (1+ blank))
(group "@" (group (1+ (not blank)) (or eow (seq ":" (1+ blank))))))
(group "@" (group (1+ (not blank)) (or eow eos (seq ":" (1+ blank))))))
body pos))
(if (setf replacement (or (when-let (member (rassoc (match-string 1 body) members))
;; Found user ID: use it as replacement.