public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Allow single quote (the ' character) in the middle of URL when auto_link-ing. 
[#471 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
chuyeow (author)
Mon Jun 23 06:14:49 -0700 2008
lifo (committer)
Fri Jun 27 05:46:17 -0700 2008
commit  3c1e8ab0fecd5ee7f9328578016ef1e61214eeee
tree    c073104c46596ae676ad3678a5662c1daba7bb4b
parent  4498aad4acda002b8f213f13c4acd52cba04d224
...
468
469
470
471
 
472
473
474
...
468
469
470
 
471
472
473
474
0
@@ -468,7 +468,7 @@ module ActionView
0
                           [-\w]+                   # subdomain or domain
0
                           (?:\.[-\w]+)*            # remaining subdomains or domain
0
                           (?::\d+)?                # port
0
-                          (?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:][^\s$]))+)?)* # path
0
+                          (?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$]))+)?)* # path
0
                           (?:\?[\w\+@%&=.;-]+)?     # query string
0
                           (?:\#[\w\-]*)?           # trailing anchor
0
                         )
...
193
194
195
 
196
197
198
...
193
194
195
196
197
198
199
0
@@ -193,6 +193,7 @@ class TextHelperTest < ActionView::TestCase
0
               http://www.mail-archive.com/rails@lists.rubyonrails.org/
0
               http://www.amazon.com/Testing-Equal-Sign-In-Path/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1198861734&sr=8-1
0
               http://en.wikipedia.org/wiki/Sprite_(computer_graphics)
0
+              http://en.wikipedia.org/wiki/Texas_hold'em
0
             )
0
 
0
     urls.each do |url|

Comments