Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_1_10) is shown here.
make_regexp(schemes = nil)
public
returns Regexp that is default
self.regexp[:ABS_URI_REF], unless schemes is provided. Then it is
a Regexp.union with
self.pattern[:X_ABS_URI]
# File lib/uri/common.rb, line 274
def make_regexp(schemes = nil)
unless schemes
@regexp[:ABS_URI_REF]
else
/(?=#{Regexp.union(*schemes)}:)#{@pattern[:X_ABS_URI]}/
end
end