Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When mentioning with @ if the username contains space the first name is recognised as the mentioned user. #1810

Open
ZainTelebu opened this issue Aug 29, 2023 · 0 comments
Labels

Comments

@ZainTelebu
Copy link

ZainTelebu commented Aug 29, 2023

Describe the bug
When mentioning with @ if the username contains space the first name is recognised as the mentioned user.

To Reproduce
Steps/code to reproduce the behavior:

public static var mention = DetectorType.custom(try! NSRegularExpression(pattern: "@[a-zA-Z0-9]{4,}", options: []))

Expected behaviour
It should recognise the mentioned text not only the first name.
print on console
Mention selected: @steven
It should print
Mention selected: @steven Deutsch

Screenshots

Simulator Screenshot - iPhone 14 Pro Max - 2023-08-29 at 14 25 12

Environment

  • What version of MessageKit are you using? 4.2.0
  • What version of iOS are you running on? iOS 16
  • What version of Swift are you running on? Swift 5
  • What device(s) are you testing on? Are these simulators? iPhone 14 Pro Max
  • Is the issue you're experiencing reproducible in the example app? it is reproducible in Example app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant