Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3c3b82

Browse files
committed
move condition inside parens
1 parent d1706e8 commit f3c3b82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/ql/src/Performance/ReDoS.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ newtype TInputSymbol =
154154
(
155155
recc instanceof RegExpCharacterClass and
156156
not recc.(RegExpCharacterClass).isUniversalClass()
157+
or
158+
recc instanceof RegExpCharacterClassEscape
157159
)
158-
or
159-
recc instanceof RegExpCharacterClassEscape
160160
} or
161161
/** An input symbol representing all characters matched by `.`. */
162162
Dot() or

0 commit comments

Comments
 (0)