This commit is contained in:
Matej Kramny 2016-12-22 03:35:31 +09:00
parent 50234f76f0
commit 2b83dad427

View File

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