From 710e25422b099e8ce2c13d868effaefa10366378 Mon Sep 17 00:00:00 2001 From: akira Date: Tue, 19 Nov 2002 07:45:10 +0000 Subject: 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 --- lib/uri/common.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/uri/common.rb') 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 -- cgit v1.2.3