element-hq / element-hq/element-ios
Display username seems to be interpreted as a regex when checking for mentions
Open
- Dominant language
- Swift
- Stars
- 1.8k
- Forks
- 544
- PR merge metrics
- PR metrics pending
Description
The screenshot below is from the view of a user with the display name `and...`. They were very confused about being highlighted many times their username wasn't actually mentioned, and I seem to have found out why (dots being interpreted as arbitrary characters when checking for mentions in a message):

I'd assume that other characters that are special in regex have similar issues, but haven't tested this.
Contributor guide
Assessment
This issue has not been assessed yet.