mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
fix #202
This commit is contained in:
parent
50234f76f0
commit
2b83dad427
@ -169,7 +169,7 @@ func readNewline(pre string, stdin *bufio.Reader) string {
|
||||
fmt.Print(pre)
|
||||
|
||||
str, _ := stdin.ReadString('\n')
|
||||
str = strings.Replace(str, "\n", "", -1)
|
||||
str = strings.Replace(strings.Replace(str, "\n", "", -1), "\r", "", -1)
|
||||
|
||||
return str
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user