JavaScript

JavaScript

Made by DeepSource

Found division operators explicitly at the beginning of regular expressions JS-0055

Anti-pattern
Minor
Autofix

Regex literals should escape division operators.

Bad Practice

function bar() { return /=foo/; }

Recommended

function bar() { return /[=]foo/; }