diff --git a/package.json b/package.json index 8ced836..850d666 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-eventstore-client", - "version": "0.1.2", + "version": "0.1.3", "description": "A port of the EventStore .Net ClientAPI to Node.js", "main": "index.js", "types": "index.d.ts", diff --git a/src/eventData.js b/src/eventData.js index 86e9589..34505a3 100644 --- a/src/eventData.js +++ b/src/eventData.js @@ -1,6 +1,6 @@ var uuid = require('uuid'); -const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; +const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; function isValidId(id) { if (typeof id !== 'string') return false; return uuidRegex.test(id);