We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f69b2a commit 987ca61Copy full SHA for 987ca61
1 file changed
swift/ql/lib/codeql/swift/regex/internal/ParseRegex.qll
@@ -98,7 +98,7 @@ abstract class RegExp extends Expr {
98
pos =
99
rank[index](int p |
100
(this.nonEscapedCharAt(p) = "[" or this.nonEscapedCharAt(p) = "]") and
101
- // Brackets that art part of POSIX expressions should not count as
+ // Brackets that are part of POSIX expressions should not count as
102
// char-set delimiters.
103
not exists(int x, int y |
104
this.posixStyleNamedCharacterProperty(x, y, _) and pos >= x and pos < y
@@ -121,7 +121,9 @@ abstract class RegExp extends Expr {
121
)
122
}
123
124
- /** Whether there is a character class, between start (inclusive) and end (exclusive). */
+ /**
125
+ * Whether there is a character class, between start (inclusive) and end (exclusive).
126
+ */
127
predicate charSet(int start, int end) {
128
exists(int innerStart, int innerEnd |
129
this.charSetStart(start, innerStart) and
0 commit comments