Skip to content

Commit

Permalink
uuid v4
Browse files Browse the repository at this point in the history
  • Loading branch information
openhoat committed Jul 27, 2016
1 parent a2568ef commit fad9964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/ohm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const validate = Promise.promisify(js.validate, {context: js});
Promise.promisifyAll(redis.RedisClient.prototype);
Promise.promisifyAll(redis.Multi.prototype);

const idPattern = '^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$';
const idPattern = '^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$';
const idSchema = {type: 'string', pattern: idPattern};

let Entity;
Expand All @@ -27,7 +27,6 @@ const ohm = {
port: process.env['REDIS_PORT'] ? parseInt(process.env['REDIS_PORT']) : 6379,
db: 0,
prefix: 'hw-redis-ohm',
idsHashPrefix: 'id',
idxHashPrefix: 'idx',
schemaMetaPrefix: 'meta',
schemas: {},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hw-redis-ohm",
"version": "0.5.6",
"version": "0.5.7",
"description": "Redis Object Hash Mapping",
"main": "lib/ohm.js",
"scripts": {
Expand Down

0 comments on commit fad9964

Please sign in to comment.