twitter-archive / twitter-text-rb

A library that does auto linking and extraction of usernames, lists and hashtags in tweets
613 stars 133 forks source link

Link break for mention string having '-' character #84

Closed sunnybogawat closed 11 years ago

sunnybogawat commented 11 years ago

My mention string has hyphen in between when I am trying to create link it break because of '-'.

mention_str = "sunny-b" puts Twitter::Autolink.auto_link(mention_str, :username_include_symbol => true)

O/P - sunny-b with invalid URL

jakl commented 11 years ago

Hyphens can't be in @mentions or @usernames Should be working correctly