Permalink
Browse files

Ruby 1.9: Fixed regexp warning by replacing nested repeat operator + …

…and ? with '*'
  • Loading branch information...
1 parent 108ed4a commit cab168ac9bbe24e5842fb7677d3fac820ddbc18c @josh josh committed Jul 19, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/text_helper.rb
View
2 actionpack/lib/action_view/helpers/text_helper.rb
@@ -468,7 +468,7 @@ def set_cycle(name, cycle_object)
[-\w]+ # subdomain or domain
(?:\.[-\w]+)* # remaining subdomains or domain
(?::\d+)? # port
- (?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$]))+)?)* # path
+ (?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$])))*)* # path
(?:\?[\w\+@%&=.;-]+)? # query string
(?:\#[\w\-]*)? # trailing anchor
)

0 comments on commit cab168a

Please sign in to comment.