mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore(uuid): add missing new identifier (#2650)
This commit is contained in:
parent
2305af1bc7
commit
04dee6e627
@ -65,7 +65,7 @@ export function validate(uuid: string): boolean {
|
||||
*/
|
||||
export function version(uuid: string): number {
|
||||
if (!validate(uuid)) {
|
||||
throw TypeError("Invalid UUID");
|
||||
throw new TypeError("Invalid UUID");
|
||||
}
|
||||
|
||||
return parseInt(uuid[14], 16);
|
||||
|
Loading…
Reference in New Issue
Block a user