mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/resolv.rb: don't use Regexp#source to embed regexps.
[ruby-dev:23432] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7b9431d98d
commit
f2f93023c8
2 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Apr 23 14:14:38 2004 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/resolv.rb: don't use Regexp#source to embed regexps.
|
||||
[ruby-dev:23432]
|
||||
|
||||
Thu Apr 22 18:25:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* common.mk, ext/extmk.rb: make ext and .ext get removed by distclean.
|
||||
|
@ -20,6 +25,7 @@ Wed Apr 21 23:04:42 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
|||
Wed Apr 21 20:05:00 2004 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/open-uri.rb (URI::HTTP#proxy_open): set Host: field explicitly.
|
||||
[ruby-list:39542]
|
||||
|
||||
Wed Apr 21 18:39:46 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
|
|
|
@ -1615,10 +1615,10 @@ class Resolv
|
|||
\z/x
|
||||
|
||||
Regex = /
|
||||
(?:#{Regex_8Hex.source}) |
|
||||
(?:#{Regex_CompressedHex.source}) |
|
||||
(?:#{Regex_6Hex4Dec.source}) |
|
||||
(?:#{Regex_CompressedHex4Dec.source})/x
|
||||
(?:#{Regex_8Hex}) |
|
||||
(?:#{Regex_CompressedHex}) |
|
||||
(?:#{Regex_6Hex4Dec}) |
|
||||
(?:#{Regex_CompressedHex4Dec})/x
|
||||
|
||||
def self.create(arg)
|
||||
case arg
|
||||
|
@ -1706,5 +1706,5 @@ class Resolv
|
|||
end
|
||||
|
||||
DefaultResolver = self.new
|
||||
AddressRegex = /(?:#{IPv4::Regex.source})|(?:#{IPv6::Regex.source})/
|
||||
AddressRegex = /(?:#{IPv4::Regex})|(?:#{IPv6::Regex})/
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue