Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 427 Bytes

Lint-UriRegexp.md

File metadata and controls

21 lines (13 loc) · 427 Bytes

Pattern: Use of URI.regexp

Issue: -

Description

This rule identifies places where URI.regexp is obsolete and should not be used. Instead, use URI::DEFAULT_PARSER.make_regexp.

Examples

# bad
URI.regexp('http://example.com')

# good
URI::DEFAULT_PARSER.make_regexp('http://example.com')

Further Reading