mchangrh/sb-slash

Wrong regex

Closed this issue · 0 comments

const isValidUserUUID = (str) => /^[a-f0-9]{64}$/.test(str);

Here, we have a regex that don't catch the userID in the command /userinfo :
image

image


Replacing with this work :
[a-f0-9]{64}
image