We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e75185f commit c6f08e8Copy full SHA for c6f08e8
acorn/src/parseutil.js
@@ -18,9 +18,9 @@ pp.strictDirective = function(start) {
18
skipWhiteSpace.lastIndex = start + match[0].length
19
let spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length
20
let next = this.input.charAt(end)
21
- return next == ";" || next == "}" ||
+ return next === ";" || next === "}" ||
22
(lineBreak.test(spaceAfter[0]) &&
23
- !(/[(`\.\[+\-\/*%<>=,?^&]/.test(next) || next == "!" && this.input.charAt(end + 1) == "="))
+ !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "="))
24
}
25
start += match[0].length
26
0 commit comments