rspec/rules/S6035/description_with_reference_to_s5998.adoc

2 lines
273 B
Plaintext
Raw Normal View History

When an alternation contains multiple alternatives that consist of a single character, it can be rewritten as a character class. This should be preferred because it is more efficient and can even help prevent stack overflows when used inside a repetition (see rule S5998).