Fix parse error on trailing spaces
This commit is contained in:
parent
ec8384f282
commit
d5723e7e17
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…
Reference in New Issue