webscopeio / react-textarea-autocomplete

📝 React component implements configurable GitHub's like textarea autocomplete.
MIT License
454 stars 80 forks source link

fix: take the last possible occurence of token #81

Closed jukben closed 6 years ago

jukben commented 6 years ago

When we match trigger char in the text ":" for example, we should return the last possible occurence. Let's have a text "text:smile:good_smile" it this situation we should return ":good_smile" not ":smile:good_smile"

CLOSE #61 #62