Fix parse error on trailing spaces
This commit is contained in:
parent
ec8384f282
commit
8ffe958d26
2
main.go
2
main.go
@ -318,6 +318,8 @@ func parseGameStart(input string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parseGameProgress(input string) (string, error) {
|
func parseGameProgress(input string) (string, error) {
|
||||||
|
input = strings.Trim(input, " ")
|
||||||
|
|
||||||
lines := strings.Split(input, "\n")
|
lines := strings.Split(input, "\n")
|
||||||
words := strings.Split(input, " ")
|
words := strings.Split(input, " ")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user