mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Minor enhancement by not unnecessarely escaping forward slashing within a curly regexp and by mentoining the protocol relative scheme in the internal comment
This commit is contained in:
parent
e31c4ace97
commit
9fb5ee8beb
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@ module ActionController
|
||||||
# The scheme name consist of a letter followed by any combination of
|
# The scheme name consist of a letter followed by any combination of
|
||||||
# letters, digits, and the plus ("+"), period ("."), or hyphen ("-")
|
# letters, digits, and the plus ("+"), period ("."), or hyphen ("-")
|
||||||
# characters; and is terminated by a colon (":").
|
# characters; and is terminated by a colon (":").
|
||||||
when %r{^(\w[\w+.-]*:|\/\/).*}
|
# The protocol relative scheme starts with a double slash "//"
|
||||||
|
when %r{^(\w[\w+.-]*:|//).*}
|
||||||
options
|
options
|
||||||
when String
|
when String
|
||||||
request.protocol + request.host_with_port + options
|
request.protocol + request.host_with_port + options
|
||||||
|
|
Loading…
Reference in a new issue