lib/ayadn/workers.rb in ayadn-1.2.1 vs lib/ayadn/workers.rb in ayadn-1.2.2

- old
+ new

@@ -283,11 +283,12 @@ end users_hash end def colorize_text(text, mentions) - reg_split = '[:\-;,?!\'&`^=+<>*%()\/"“”’°£$€.]' - reg_tag = '#([A-Za-z0-9_]{1,255})(?![\w+])' + reg_split = '[~:-;,?!\'&`^=+<>*%()\/"“”’°£$€.…]' + #reg_tag = '#([A-Za-z0-9_]{1,255})(?![\w+])' + reg_tag = '#([[:alpha:]0-9_]{1,255})(?![\w+])' reg_mention = '@([A-Za-z0-9_]{1,20})(?![\w+])' reg_sentence = '^.+[\r\n]*' handles = Array.new mentions.each {|username| handles << "@#{username}"} words = Array.new