1 # Disallow Regular Expressions That Look Like Division (no-div-regex)
3 Require regex literals to escape division operators.
6 function bar() { return /=foo/; }
11 This is used to disambiguate the division operator to not confuse users.
13 Examples of **incorrect** code for this rule:
16 /*eslint no-div-regex: "error"*/
18 function bar() { return /=foo/; }
21 Examples of **correct** code for this rule:
24 /*eslint no-div-regex: "error"*/
26 function bar() { return /[=]foo/; }
31 * [no-control-regex](no-control-regex.md)
32 * [no-regex-spaces](no-regex-spaces.md)