mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Python: fix inconsistency
Since we calculate the end column by offset, we must believ that the end line is the same as the start line.
This commit is contained in:
@@ -257,8 +257,9 @@ module Impl implements RegexTreeViewSig {
|
|||||||
) {
|
) {
|
||||||
not exists(this.getPart(_)) and
|
not exists(this.getPart(_)) and
|
||||||
exists(int re_start, int prefix_len | prefix_len = re.getPrefix().length() |
|
exists(int re_start, int prefix_len | prefix_len = re.getPrefix().length() |
|
||||||
re.getLocation().hasLocationInfo(filepath, startline, re_start, endline, _) and
|
re.getLocation().hasLocationInfo(filepath, startline, re_start, _, _) and
|
||||||
startcolumn = re_start + start + prefix_len and
|
startcolumn = re_start + start + prefix_len and
|
||||||
|
endline = startline and
|
||||||
endcolumn = re_start + end + prefix_len - 1
|
endcolumn = re_start + end + prefix_len - 1
|
||||||
/* inclusive vs exclusive */
|
/* inclusive vs exclusive */
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user