Skip to content

Commit

Permalink
Reverts change allowing test() to pass for uuid versions 1,2,3,5. Thi…
Browse files Browse the repository at this point in the history
…s change will happen in a minor patch instead.
  • Loading branch information
jchook committed Jun 24, 2020
1 parent 832c101 commit 8d8a02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Test for uuid
uuid.test = function(uuid) {
if (typeof uuid === 'string') {
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);
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);
}
return false;
};
Expand Down

0 comments on commit 8d8a02f

Please sign in to comment.