Pattern: Use of URI.regexp
Issue: -
This rule identifies places where URI.regexp
is obsolete and should not be used. Instead, use URI::DEFAULT_PARSER.make_regexp
.
# bad
URI.regexp('http://example.com')
# good
URI::DEFAULT_PARSER.make_regexp('http://example.com')