Empty character classes in regular expressions don’t match anything.
This is likely a sign that the regular expression does not work as intended.
Noncompliant Code Example
/^foo[]/.test("foobar"); // false
Compliant Solution
/^foo/.test("foobar"); // true