From 0188ea496b88c41e1de48805d26667fb272603ba Mon Sep 17 00:00:00 2001 From: u5surf Date: Sun, 7 Apr 2024 22:50:23 +0900 Subject: [PATCH] Use ParseStrict to be invalided ILOU characters #69 --- cmd/ulid/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ulid/main.go b/cmd/ulid/main.go index 50e62cc..69b8556 100644 --- a/cmd/ulid/main.go +++ b/cmd/ulid/main.go @@ -83,7 +83,7 @@ func generate(quick, zero bool) { } func parse(s string, local bool, f func(time.Time) string) { - id, err := ulid.Parse(s) + id, err := ulid.ParseStrict(s) if err != nil { fmt.Fprintf(os.Stderr, "%v\n", err) os.Exit(1)