We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 832c101 commit 8d8a02fCopy full SHA for 8d8a02f
index.js
@@ -31,7 +31,7 @@
31
// Test for uuid
32
uuid.test = function(uuid) {
33
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);
+ 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);
35
}
36
return false;
37
};
0 commit comments