JoeBussard / polywordleapi

the api for playing polywordle
0 stars 0 forks source link

Use regex for uuid checking #70

Open JoeBussard opened 1 year ago

JoeBussard commented 1 year ago

I found a regex for checking UUIDs. Currently I verify that user-provided UUIDs, e.g., in /v1/get/<uuid> are valid by slicing off everything after the 40th character. I can use regexes (regexi?) to validate UUIDs instead.