metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.44k stars 205 forks source link

Simplify uuid regex for accept non-standard and zero uuids #889

Closed niwinz closed 1 year ago

niwinz commented 1 year ago

The previous regular expression only accepted a very small subset of standard versions (a commonly used uuid v1-v6). This commit replaces it with a more general/simplified regex that also accepts uuid-zero, uuid-max and all other non-standardarized but still valid uuid values (including all the upcoming new versions https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis)

piotr-yuxuan commented 1 year ago

Glad to read that!

ikitommi commented 1 year ago

Thanks!!