Fix parse error on trailing spaces

This commit is contained in:
ekzyis 2024-10-21 15:33:56 +00:00
parent ec8384f282
commit d5723e7e17
1 changed files with 2 additions and 0 deletions

View File

@ -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, " ")