twitter-text 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/regex.rb +1 -1
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ require 'digest'
9
9
 
10
10
  spec = Gem::Specification.new do |s|
11
11
  s.name = "twitter-text"
12
- s.version = "1.0.2"
12
+ s.version = "1.0.3"
13
13
  s.author = "Matt Sanford"
14
14
  s.email = "matt@twitter.com"
15
15
  s.homepage = "http://twitter.com"
@@ -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!\*'\(\);:&=\+\$\/%#\[\]\-_\.,~@]/i
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-text
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Sanford