Duplicate character in character class

Last modified: Last modified: 18 September 2025

Reports duplicate characters inside a RegExp character class. Duplicate characters are unnecessary and can be removed without changing the semantics of the regex.

Example:

After the quick-fix is applied:

Inspection ID: RegExpDuplicateCharacterInClass