Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Allow more general UUID in example project
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Duncan committed May 30, 2019
1 parent de31ebe commit e34f25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/Uuid.ts
Expand Up @@ -2,7 +2,7 @@ import Decoder from 'decoder-js';

export default class Uuid {
private static isValid(str: string) {
const validRegex = /^[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 validRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
return validRegex.test(str);
}

Expand Down

0 comments on commit e34f25e

Please sign in to comment.