feature: Add support for v1 and v2 UUIDs to isUUID() #1497
Labels
status: done/released
Issue has been completed, no further action is needed.
type: feature
Issues related to new features.
Description
A project I'm working with makes heavy use of this package, and we are starting to use v1 UUIDs in certain areas where we need to glean certain time info from the UUID. I would love to be able to use this package to validate v1 and v2 UUIDs as well.
Luckily
validator.js
has already expanded this functionality to accept type 1 and 2 UUIDS in ver 13.7.0. And the functionality just needs to be expanded here.Proposed solution
This should be an easy drop in replacement in src/decorator/string/IsUUID.ts
Original:
Modified:
The text was updated successfully, but these errors were encountered: