sporkmonger / uuidtools

A simple universally unique ID generation library.
http://uuidtools.rubyforge.org/
Apache License 2.0
425 stars 63 forks source link

Make the UUID Regexp a separate constant #25

Closed sodabrew closed 11 years ago

sodabrew commented 11 years ago

Other packages can test for UUID likeness by 'candidate =~ UUIDTools::UUID_REGEXP' without having to fully parse the UUID.

sporkmonger commented 11 years ago

Agree that this should be a constant, but perhaps testing if a string is a UUID is something that UUIDTools should natively support via its own method?

sodabrew commented 11 years ago

I was thinking about that. Something like UUIDTools::UUID.is_uuid?

sporkmonger commented 11 years ago

:+1: Patches welcome. :smile: