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 }