twitter-text 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/regex.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/regex.rb
CHANGED
@@ -45,7 +45,7 @@ module Twitter
|
|
45
45
|
# URL related hash regex collection
|
46
46
|
REGEXEN[:valid_preceding_chars] = /(?:[^\/"':!=]|^|\:)/
|
47
47
|
REGEXEN[:valid_domain] = /(?:[\.-]|[^[:punct:]\s])+\.[a-z]{2,}(?::[0-9]+)?/i
|
48
|
-
REGEXEN[:valid_url_path_chars] = /[a-z0-9!\*'\(\);:&=\+\$\/%#\[\]\-_
|
48
|
+
REGEXEN[:valid_url_path_chars] = /[\.\,]?[a-z0-9!\*'\(\);:&=\+\$\/%#\[\]\-_,~@]/i
|
49
49
|
# Valid end-of-path chracters (so /foo. does not gobble the period).
|
50
50
|
# 1. Allow ) for Wikipedia URLs.
|
51
51
|
# 2. Allow =&# for empty URL parameters and other URL-join artifacts
|