Ruby 1.9: Fixed regexp warning by replacing nested repeat operator + and ? with '*'

This commit is contained in:
Joshua Peek 2008-07-19 00:46:02 -05:00
parent 108ed4a566
commit cab168ac9b
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ module ActionView
[-\w]+ # subdomain or domain
(?:\.[-\w]+)* # remaining subdomains or domain
(?::\d+)? # port
(?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$]))+)?)* # path
(?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$])))*)* # path
(?:\?[\w\+@%&=.;-]+)? # query string
(?:\#[\w\-]*)? # trailing anchor
)