diff options
author | akira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-19 07:45:10 +0000 |
---|---|---|
committer | akira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-19 07:45:10 +0000 |
commit | 27dffcfa18c2ac1aa059c52b08970e8674473aad (patch) | |
tree | 94fac38b4d66f508786eb3819b80afba2c71532e /lib | |
parent | 6dce478a6a9ee1f1602102365b0438c2b8cc126d (diff) |
URI::extract extracts only URIs of specified schemes when schemes are specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uri/common.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb index aabb887db2..8ca3c08482 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -403,10 +403,10 @@ module URI regexp = Regexp.new('(?=' + schemes.collect{|s| Regexp.quote(s + ':') }.join('|') + ')' + PATTERN::X_ABS_URI, - Regexp::IGNORECASE, 'N') + Regexp::EXTENDED, 'N') end - str.scan(ABS_URI_REF) { + str.scan(regexp) { if block_given? yield($&) else |