9 When a regular expression is used in certain situations, it can end up looking like a division operator. For example:
13 return /foo/.test("bar");
19 This is used to disambiguate the slash operator and facilitates more readable code.
21 Example of **incorrect** code for this rule:
26 /*eslint wrap-regex: "error"*/
29 return /foo/.test("bar");
35 Example of **correct** code for this rule:
40 /*eslint wrap-regex: "error"*/
43 return (/foo/).test("bar");