Skip to content

Commit

Permalink
fix(uuid): if token is undefined return false
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Aug 29, 2023
1 parent 9cd08a5 commit 7b209b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/helpers/Uuid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export class Uuid {
token: string,
options: { prefix?: string; ignorePrefix?: boolean } = {},
): boolean {
if (!token) {
return false
}

options = Options.create(options, { ignorePrefix: true })

if (options.prefix) {
Expand Down

0 comments on commit 7b209b7

Please sign in to comment.