strip windows newlines on nix
This commit is contained in:
parent
e455af7f1f
commit
118608999c
2 changed files with 5 additions and 0 deletions
|
|
@ -298,3 +298,7 @@ func randRange(min, max int) int {
|
|||
func randomCheckDelay() {
|
||||
time.Sleep(time.Duration(randRange(300, 950)) * time.Millisecond)
|
||||
}
|
||||
|
||||
func removeWinNewLines(s string) string {
|
||||
return strings.ReplaceAll(s, "\r\n", "\n")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue