summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-19 07:45:10 +0000
committerakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-19 07:45:10 +0000
commit49951e7ad5fadf9ea4e7a9183de3420e66f96eec (patch)
tree500e48449b0d7ec027c8e60da7beaad799c7cd38 /lib
parent57003bed0f420674c838f657058258a19c3653bb (diff)
downloadruby-49951e7ad5fadf9ea4e7a9183de3420e66f96eec.tar.gz
ruby-49951e7ad5fadf9ea4e7a9183de3420e66f96eec.tar.xz
ruby-49951e7ad5fadf9ea4e7a9183de3420e66f96eec.zip
URI::extract extracts only URIs of specified schemes when schemes are specified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/uri/common.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index aabb887db..8ca3c0848 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