summaryrefslogtreecommitdiff
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
commit710e25422b099e8ce2c13d868effaefa10366378 (patch)
tree500e48449b0d7ec027c8e60da7beaad799c7cd38
parent86a5ba2b011836ff97e4224dd1e65869fd2b7362 (diff)
URI::extract extracts only URIs of specified schemes when schemes are specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 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