From 8735b23bf91f0f4bf37fd89f9068efb0c9a09d83 Mon Sep 17 00:00:00 2001 From: Nicolas Dextraze Date: Mon, 5 Jun 2017 15:23:27 -0700 Subject: [PATCH] Remove strictness of UUID --- package.json | 2 +- src/eventData.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);