fix: Fix parsing of revert and body

This commit is contained in:
tsuyoshiwada 2018-02-17 01:40:27 +09:00
parent 153727ed1a
commit 8869631aad
8 changed files with 160 additions and 30 deletions

View file

@ -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)
}