element-hq / element-hq/element-ios

Display username seems to be interpreted as a regex when checking for mentions

Open
#2,898 0 comments 1 reaction 0 assignees View on GitHub
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):

![Screenshot](https://matrix.org/_matrix/media/r0/download/matrix.org/rHxGrNihuaWnzqJmhsjtVIXZ)

I'd assume that other characters that are special in regex have similar issues, but haven't tested this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.