Skip to content

Commit

Permalink
scheme should contain one or more characters
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 11, 2014
1 parent a64914d commit 3327dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/url.rb
Expand Up @@ -5,7 +5,7 @@ module ActionDispatch
module Http
module URL
IP_HOST_REGEXP = /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
HOST_REGEXP = /(^.*:\/\/)?([^:]+)(?::(\d+$))?/
HOST_REGEXP = /(^[^:]+:\/\/)?([^:]+)(?::(\d+$))?/
PROTOCOL_REGEXP = /^([^:]+)(:)?(\/\/)?$/

mattr_accessor :tld_length
Expand Down

0 comments on commit 3327dd4

Please sign in to comment.