mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
nasty little bug (#853)
This commit is contained in:
1 parent
f93e5dc844
commit
0017ae60b6
1 file changed
+1
@@ -22,6 +22,7 @@ func location(fragment Fragment, matchIndex []int) Location {
|
||||
end := matchIndex[1]
|
||||
|
||||
for lineNum, pair := range fragment.newlineIndices {
|
||||
_lineNum = lineNum
|
||||
newLineByteIndex := pair[0]
|
||||
if prevNewLine <= start && start < newLineByteIndex {
|
||||
lineSet = true
|
||||
|
||||
Reference in new issue
Block a user