mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
Remove break lines in commit messages
Breaklines in a csv report caused issues when importing the data to an spreadsheet application like LibreOffice Calc or Microsoft Excel.
This commit is contained in:
1 parent
60267523e9
commit
7d5ed837a4
1 file changed
+1
-1
@@ -523,7 +523,7 @@ func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak {
|
|||||||
content: chunk.Content(),
|
content: chunk.Content(),
|
||||||
sha: c.Hash.String(),
|
sha: c.Hash.String(),
|
||||||
author: c.Author.String(),
|
author: c.Author.String(),
|
||||||
message: c.Message,
|
message: strings.Replace(c.Message, "\n", " ", -1),
|
||||||
date: c.Author.When,
|
date: c.Author.When,
|
||||||
}
|
}
|
||||||
chunkLeaks := inspect(diff)
|
chunkLeaks := inspect(diff)
|
||||||
|
|||||||
Reference in new issue
Block a user