Skip to content

Commit 1a9aaf4

Browse files
aibaarsyoff
andcommitted
Apply suggestions from code review
Co-authored-by: yoff <lerchedahl@gmail.com>
1 parent 5f78714 commit 1a9aaf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ql/lib/semmle/python/regex.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ abstract class RegexString extends Expr {
317317
/** Gets the `i`th character of this regex */
318318
string getChar(int i) { result = this.getText().charAt(i) }
319319

320-
/** Gets the `i`th character of this regex, unless it is part of an character escape sequence. */
320+
/** Gets the `i`th character of this regex, unless it is part of a character escape sequence. */
321321
string nonEscapedCharAt(int i) {
322322
result = this.getText().charAt(i) and
323323
not exists(int x, int y | this.escapedCharacter(x, y) and i in [x .. y - 1])

ruby/ql/lib/codeql/ruby/regexp/internal/ParseRegExp.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ abstract class RegExp extends AST::StringlikeLiteral {
259259
/** Gets the `i`th character of this regex */
260260
string getChar(int i) { result = this.getText().charAt(i) }
261261

262-
/** Gets the `i`th character of this regex, unless it is part of an character escape sequence. */
262+
/** Gets the `i`th character of this regex, unless it is part of a character escape sequence. */
263263
string nonEscapedCharAt(int i) {
264264
result = this.getText().charAt(i) and
265265
not exists(int x, int y | this.escapedCharacter(x, y) and i in [x .. y - 1])

0 commit comments

Comments
 (0)