Skip to content

Commit abec4ba

Browse files
Apply suggestions from code review
Co-Authored-By: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
1 parent 344f0b4 commit abec4ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

javascript/ql/src/semmle/javascript/Regexp.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -945,27 +945,27 @@ module RegExp {
945945
bindingset[flags]
946946
predicate isGlobal(string flags) { flags.matches("%g%") }
947947

948-
/** Holds `flags` includes the `i` flag. */
948+
/** Holds if `flags` includes the `i` flag. */
949949
bindingset[flags]
950950
predicate isIgnoreCase(string flags) { flags.matches("%i%") }
951951

952-
/** Holds `flags` includes the `s` flag. */
952+
/** Holds if `flags` includes the `s` flag. */
953953
bindingset[flags]
954954
predicate isDotAll(string flags) { flags.matches("%s%") }
955955

956-
/** Holds `flags` includes the `m` flag or is the unknown flag `?`. */
956+
/** Holds if `flags` includes the `m` flag or is the unknown flag `?`. */
957957
bindingset[flags]
958958
predicate maybeMultiline(string flags) { flags = unknownFlag() or isMultiline(flags) }
959959

960-
/** Holds `flags` includes the `g` flag or is the unknown flag `?`. */
960+
/** Holds if `flags` includes the `g` flag or is the unknown flag `?`. */
961961
bindingset[flags]
962962
predicate maybeGlobal(string flags) { flags = unknownFlag() or isGlobal(flags) }
963963

964-
/** Holds `flags` includes the `i` flag or is the unknown flag `?`. */
964+
/** Holds if `flags` includes the `i` flag or is the unknown flag `?`. */
965965
bindingset[flags]
966966
predicate maybeIgnoreCase(string flags) { flags = unknownFlag() or isIgnoreCase(flags) }
967967

968-
/** Holds `flags` includes the `s` flag or is the unknown flag `?`. */
968+
/** Holds if `flags` includes the `s` flag or is the unknown flag `?`. */
969969
bindingset[flags]
970970
predicate maybeDotAll(string flags) { flags = unknownFlag() or isDotAll(flags) }
971971

0 commit comments

Comments
 (0)