Skip to content

Commit

Permalink
Use ParseStrict to be invalided ILOU characters oklog#69
Browse files Browse the repository at this point in the history
  • Loading branch information
u5surf committed Apr 7, 2024
1 parent 8b543f4 commit 0188ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ulid/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0188ea4

Please sign in to comment.