mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
fix: Fix parsing of revert and body
This commit is contained in:
parent
153727ed1a
commit
8869631aad
8 changed files with 160 additions and 30 deletions
8
utils.go
8
utils.go
|
|
@ -104,3 +104,11 @@ func compareTime(a time.Time, operator string, b time.Time) bool {
|
|||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func convNewline(str, nlcode string) string {
|
||||
return strings.NewReplacer(
|
||||
"\r\n", nlcode,
|
||||
"\r", nlcode,
|
||||
"\n", nlcode,
|
||||
).Replace(str)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue