Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Fix a bug in Punycode URL support
Browse files Browse the repository at this point in the history
  • Loading branch information
Satoshi Nakagawa committed Apr 24, 2012
1 parent 95408af commit 37b13c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/regex.rb
Expand Up @@ -190,7 +190,7 @@ def self.regex_range(from, to = nil) # :nodoc:
(?=[^0-9a-z]|$)
)
}ix
REGEXEN[:valid_punycode] = /(?:xn--[0-9a-z]+)/
REGEXEN[:valid_punycode] = /(?:xn--[0-9a-z]+)/i

REGEXEN[:valid_domain] = /(?:
#{REGEXEN[:valid_subdomain]}*#{REGEXEN[:valid_domain_name]}
Expand Down

0 comments on commit 37b13c3

Please sign in to comment.