Skip to content

Files

Latest commit

 

History

History
27 lines (17 loc) · 440 Bytes

Lint-DuplicateRegexpCharacterClassElement.md

File metadata and controls

27 lines (17 loc) · 440 Bytes

Pattern: Duplicate element in Regexp character class

Issue: -

Description

Checks for duplicate elements in Regexp character classes.

Examples

# bad
r = /[xyx]/

# bad
r = /[0-9x0-9]/

# good
r = /[xy]/

# good
r = /[0-9x]/

Further Reading