summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 aabb887..8ca3c08 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