-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strict RFC4122 UUID validation and separate guid validation (#2872)
* Add test for stricter UUID * Add test for stricter UUID (mirror in Deno tests) * Add test for separate guid string validator * Update UUID to follow RFC4122 strictly * Add guid string validator * Change test.each to array.forEach for automatic deno build * Add isGUID method * Add other uuid regexes * Update tests --------- Co-authored-by: Colin McDonnell <[email protected]>
- Loading branch information
1 parent
12eca8e
commit 35b25b9
Showing
6 changed files
with
196 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,7 @@ export type StringValidation = | |
| "emoji" | ||
| "uuid" | ||
| "nanoid" | ||
| "guid" | ||
| "regex" | ||
| "cuid" | ||
| "cuid2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,7 @@ export type StringValidation = | |
| "emoji" | ||
| "uuid" | ||
| "nanoid" | ||
| "guid" | ||
| "regex" | ||
| "cuid" | ||
| "cuid2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters