When mentioning with @ if the username contains space the first name is recognised as the mentioned user.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the issue in the Example app with the supplied DetectorType.custom regular expression and trace how the mention selection handles names containing spaces. Done means selecting @Steven Deutsch reports the full mentioned text rather than only @Steven, while preserving existing mention behavior.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Swift
- Stars
- 6.3k
- Forks
- 1.2k
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MessageKit/MessageKit
-
Keyboard bug Openbug?
Difficulty 3/5 1-2 days Newbie friendliness 45/100
MessageKit/MessageKit#1901 ·
-
question
Difficulty 4/5 3-5 days Newbie friendliness 35/100
MessageKit/MessageKit#1888 · 2 comments ·
-
Transparent navigation bar in messageInputBar but messagesCollectionView is not shown in these areas Openfeature request
Difficulty 3/5 1-2 days Newbie friendliness 35/100
MessageKit/MessageKit#1884 · 1 comment ·
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 45/100
MessageKit/MessageKit#1880 ·
-
bug?
Difficulty 4/5 3-5 days Newbie friendliness 35/100
MessageKit/MessageKit#1878 ·
All issues in MessageKit/MessageKit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
maxgoedjen/secretive#840 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
manaflow-ai/cmux#13763 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openwallet-foundation/multipaz#2028 ·