diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-23 05:22:25 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-23 05:22:25 +0000 |
commit | f2f93023c82c14df33c016350e1fa4648bf4702a (patch) | |
tree | bfdbbb99ac38451775f2378571fc1ddb8e074499 /lib | |
parent | 7b9431d98d37f57813fbcb1b72bd312f47f439a9 (diff) | |
download | ruby-f2f93023c82c14df33c016350e1fa4648bf4702a.tar.gz |
* 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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/resolv.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb index ad52882582..3b36d0fc84 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -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 |