8 When a regular expression is used in certain situations, it can end up looking like a division operator. For example:
12 return /foo/.test("bar");
18 This is used to disambiguate the slash operator and facilitates more readable code.
20 Example of **incorrect** code for this rule:
25 /*eslint wrap-regex: "error"*/
28 return /foo/.test("bar");
34 Example of **correct** code for this rule:
39 /*eslint wrap-regex: "error"*/
42 return (/foo/).test("bar");