mirror of
https://github.com/github/rails.git
synced 2026-02-10 06:04:55 -05:00
Ruby 1.9: Fixed regexp warning by replacing nested repeat operator + and ? with '*'
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user