You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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:
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
Environment
The text was updated successfully, but these errors were encountered: