From d5723e7e17f70774149e077c94b66cb73debf9d8 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 21 Oct 2024 15:33:56 +0000 Subject: [PATCH] Fix parse error on trailing spaces --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 3db4b32..be0cf77 100644 --- a/main.go +++ b/main.go @@ -318,6 +318,8 @@ func parseGameStart(input string) (string, error) { } func parseGameProgress(input string) (string, error) { + input = strings.Trim(input, " ") + lines := strings.Split(input, "\n") words := strings.Split(input, " ")