souple — 9/18/2025, 8:22:36 PM

If anyone had any trouble registering on wikiverse, its because of this line of code. Sorry :P

```

if (!(/^[a-zA-Z0-9.\-_$@*!]{3,30}$/).test(password)) {

return c.json({ message: 'Password cannot contain spaces or newlines and must be at most 30 characters' }, 400)

}

```

what regex should i use for validifying passwords?

♥ 3 ↩ 0 💬 7 comments

comments

radi8:

don't validate passwords. If a user has an insecure account, that's their problem.

9/18/2025, 10:05:40 PM
souple:

ok

9/18/2025, 10:14:51 PM
juniperrr:

what’s wikiverse

9/18/2025, 8:58:34 PM
souple:

a little website i made months ago that ive just been working on!

check it out!

https://wikiverse.pages.dev

9/18/2025, 9:02:33 PM
juniperrr:

I did :P I already submitted an article

9/18/2025, 9:31:57 PM
souple:

Awesome!

9/18/2025, 9:36:46 PM
souple:

https://wikiverse.pages.dev/blog/40

9/18/2025, 9:39:05 PM