From b1fc2515747d1fce69a4c3c66067253e8b9434a3 Mon Sep 17 00:00:00 2001 From: Hayden Johnson Date: Sun, 15 Feb 2026 17:35:58 -0800 Subject: [PATCH] use fields instead of split to split on all whitespace --- main.odin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.odin b/main.odin index 53dd225..375b521 100644 --- a/main.odin +++ b/main.odin @@ -22,7 +22,8 @@ import "core:strings" getSpaceDelimetedItems :: proc(backingBuffer: []byte) -> []string { count, _ := os.read(os.stdin, backingBuffer) response := string(backingBuffer[:count - 1]) // leave off the newline - items, _ := strings.split(response, " ") + strings.trim_space(response) + items, _ := strings.fields(response) return items }