From 49951e7ad5fadf9ea4e7a9183de3420e66f96eec 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: http://svn.ruby-lang.org/repos/ruby/trunk@3063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/common.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit