psharanda / Atributika

Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement.
MIT License
1.45k stars 155 forks source link

detect (_ underscore) in mentions #137

Closed sahibhussain closed 1 year ago

sahibhussain commented 3 years ago

the framework does not seems to detect underscore (_) in the mention string

albertoramonj commented 3 years ago

Same here. The "problem" is that the detectMentions regex is filtering the punctuation and symbols. Maybe it would be a good idea to be able to optionally set a custom mention (or hashtag) detection regex?. Thanks!

psharanda commented 1 year ago

Fixed in V5