react-native-mentions icon indicating copy to clipboard operation
react-native-mentions copied to clipboard

Usernames cannot have dots in them

Open njt1982 opened this issue 6 years ago • 2 comments

https://github.com/harshq/react-native-mentions/blob/b1aac08c91e94b5cac3ddfd3df908da0aa71d828/src/MentionsTextInput.js#L77

This assumes all usernames match that syntax.

We have a username with @first.lastname. The result of this code is that the keyword passed to our triggerCallback does not contain anything including and after the dot.

Suggest that the regex is exposed as a param and defaults to its current value?

njt1982 avatar Oct 09 '17 17:10 njt1982

Good idea, You are welcome to send a PR if you have fixed it already. I'll fix this with the next release otherwise :)

harshq avatar Oct 10 '17 05:10 harshq

Hey just published a new react-native-mentions package. Check it out.

mrazadar avatar Sep 26 '19 13:09 mrazadar