Browse Source

Fix to `split_multi_iterator`

gingerBill 2 years ago
parent
commit
97d7e295dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/strings/strings.odin

+ 1 - 0
core/strings/strings.odin

@@ -1511,6 +1511,7 @@ split_multi_iterate :: proc(it: ^string, substrs: []string) -> (res: string, ok:
 		it^ = it[i+w:]
 	} else {
 		// last value
+		res = it^
 		it^ = it[len(it):]
 	}
 	ok = true