summaryrefslogtreecommitdiff
path: root/lib/date/parse.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/date/parse.myr')
-rw-r--r--lib/date/parse.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/date/parse.myr b/lib/date/parse.myr
index 80f0b76..19798dd 100644
--- a/lib/date/parse.myr
+++ b/lib/date/parse.myr
@@ -164,9 +164,9 @@ const eatspace = {s
const indexof = {dst, s, set, err
for var i = 0; i < set.len; i++
- if s.len >= set[i].len && std.streq(s, set[i])
+ if s.len >= set[i].len && std.streq(s[:set[i].len], set[i])
dst# = i
- -> s
+ -> s[set[i].len:]
;;
;;
err# = `std.Some `Badname s