mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
Fix: (ement-room--format-body-mentions) Regexp
This commit is contained in:
parent
f233141d8d
commit
7abf04dd0e
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue