Skip to content

Commit

Permalink
fix: uuid regex should only accept hex chars (0-f)
Browse files Browse the repository at this point in the history
  • Loading branch information
grappigegovert committed Feb 1, 2025
1 parent 557d0ae commit a0b18bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const ServerVer: ServerVersion = {
export const PEACOCKVERSTRING = HUMAN_VERSION

export const uuidRegex =
/^[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}$/
/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/

export const contractTypes = ["featured", "usercreated"]

Expand Down

0 comments on commit a0b18bd

Please sign in to comment.