dylanhart / ulid-rs

This is a Rust implementation of the ulid project
https://crates.io/crates/ulid
MIT License
381 stars 36 forks source link

Is there a method to validate that a ULID is valid? #58

Closed frederikhors closed 1 year ago

frederikhors commented 1 year ago

Hello and thank you for the wonderful job you did with this crate! 😃

I have a question: is there a method to validate that a ULID that comes to me from outside is valid?

If I use from_string() is it ok?

dylanhart commented 1 year ago

Yes, mostly. Documented the exceptional case in #59 .