diff options
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 |