Fix pill generating regex
This commit is contained in:
parent
c0a10e9b18
commit
bcd2bffd0c
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ function formatAndEmojifyText(mx, roomList, roomId, text) {
|
|||
formattedText = text;
|
||||
}
|
||||
|
||||
const MXID_REGEX = /\B@\S+:\S+\.\S+/g;
|
||||
const MXID_REGEX = /\B@\S+:\S+\.\S+[^.,:;?!\s]/g;
|
||||
Array.from(formattedText.matchAll(MXID_REGEX))
|
||||
.filter((mxidMatch) => userIdsToDisplayNames[mxidMatch[0]])
|
||||
.reverse()
|
||||
|
|
Loading…
Reference in a new issue