feat: add hashing and validation utility functions

This commit is contained in:
SauceyRed 2025-05-01 22:29:53 +02:00
parent d401464353
commit 80a2c724d8
Signed by: sauceyred
GPG key ID: 270B096EF6E9A462
2 changed files with 10 additions and 0 deletions

3
utils/validation.ts Normal file
View file

@ -0,0 +1,3 @@
export function validateUsername(username: string) {
return /^[\w.-]+$/.test(username);
}