Skip to content

Commit a98186b

Browse files
Fixed flags in no-super-linear-backtracking rule
I simply copypasted one line without thinking.
1 parent 4f34bff commit a98186b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/rules/no-super-linear-backtracking.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ function getParsedLiteral(context: RegExpContext): ParsedLiteral {
4141
start: NaN,
4242
end: NaN,
4343
dotAll: flags.dotAll ?? false,
44-
global: flags.dotAll ?? false,
45-
ignoreCase: flags.dotAll ?? false,
46-
multiline: flags.dotAll ?? false,
47-
sticky: flags.dotAll ?? false,
48-
unicode: flags.dotAll ?? false,
44+
global: flags.global ?? false,
45+
ignoreCase: flags.ignoreCase ?? false,
46+
multiline: flags.multiline ?? false,
47+
sticky: flags.sticky ?? false,
48+
unicode: flags.unicode ?? false,
4949
},
5050
}
5151
}

0 commit comments

Comments
 (0)