Skip to content

Commit

Permalink
Ruby 1.9: Fixed regexp warning by replacing nested repeat operator + …
Browse files Browse the repository at this point in the history
…and ? with '*'
  • Loading branch information
josh committed Jul 19, 2008
1 parent 108ed4a commit cab168a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/text_helper.rb
Expand Up @@ -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
)
Expand Down

0 comments on commit cab168a

Please sign in to comment.