Skip to content
This repository
Browse code

Fixed autolink regexp compatibility for ruby 1.9 [#783 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
commit b2630502a0525e5965d4eff283e3d2613cd1ca19 1 parent 2faf35c
authored August 09, 2008 josh committed August 09, 2008
2  actionpack/lib/action_view/helpers/text_helper.rb
@@ -558,7 +558,7 @@ def set_cycle(name, cycle_object)
558 558
                           [-\w]+                   # subdomain or domain
559 559
                           (?:\.[-\w]+)*            # remaining subdomains or domain
560 560
                           (?::\d+)?                # port
561  
-                          (?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$])))*)* # path
  561
+                          (?:/(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$]))*)* # path
562 562
                           (?:\?[\w\+@%&=.;-]+)?     # query string
563 563
                           (?:\#[\w\-]*)?           # trailing anchor
564 564
                         )

0 notes on commit b263050

Please sign in to comment.
Something went wrong with that request. Please try again.