Skip to content

Commit 579cddc

Browse files
committed
use strict parsing mode in cli
1 parent 5a1bab8 commit 579cddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/sulid/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func generate(quick, zero, mono bool, num uint) {
9797
}
9898

9999
func parse(s string, local bool, f func(time.Time) string) {
100-
id, err := sulid.Parse(s)
100+
id, err := sulid.ParseStrict(s)
101101
if err != nil {
102102
fmt.Fprintf(os.Stderr, "%v\n", err)
103103
os.Exit(1)

0 commit comments

Comments
 (0)