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 5a99007 commit 5449bdcCopy full SHA for 5449bdc
swift/ql/lib/codeql/swift/regex/RegexTreeView.qll
@@ -213,9 +213,9 @@ private module Impl implements RegexTreeViewSig {
213
) {
214
filepath = re.getFile().getAbsolutePath() and
215
startline = re.getLocation().getStartLine() and
216
- startcolumn = re.getLocation().getStartColumn() and
+ startcolumn = re.getLocation().getStartColumn() + start + 1 and
217
endline = re.getLocation().getEndLine() and
218
- endcolumn = re.getLocation().getEndColumn()
+ endcolumn = re.getLocation().getStartColumn() + end - 1
219
}
220
221
/** Gets the file in which this term is found. */
0 commit comments