rspec/rules/S5842/description.adoc

2 lines
193 B
Plaintext
Raw Permalink Normal View History

A regex should never include a repetitive pattern whose body would match the empty string. This is usually a sign that a part of the regex is redundant or does not do what the author intended.