Skip to content

Commit 8d8a02f

Browse files
committed
Reverts change allowing test() to pass for uuid versions 1,2,3,5. This change will happen in a minor patch instead.
1 parent 832c101 commit 8d8a02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// Test for uuid
3232
uuid.test = function(uuid) {
3333
if (typeof uuid === 'string') {
34-
return /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(uuid);
34+
return /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(uuid);
3535
}
3636
return false;
3737
};

0 commit comments

Comments
 (0)