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:47:16 -0700 2008
commit  42612fe6d1dee97877726777eb1ab843f39b06e2
tree    faae227a026d9ae0e723eb2a8bc8ed0691913781
parent  a892af60cb0ba3dd9d58d557c0bb1d11dbbf045b
...
464
465
466
467
 
468
469
470
...
464
465
466
 
467
468
469
470
0
@@ -464,7 +464,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
                         )
...
187
188
189
 
190
191
192
...
187
188
189
190
191
192
193
0
@@ -187,6 +187,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