Method: Bundler::URI::RFC2396_Parser#make_regexp
- Defined in:
- lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb
#make_regexp(schemes = nil) ⇒ Object
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]
.
262 263 264 265 266 267 268 |
# File 'lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb', line 262 def make_regexp(schemes = nil) unless schemes @regexp[:ABS_URI_REF] else /(?=#{Regexp.union(*schemes)}:)#{@pattern[:X_ABS_URI]}/x end end |