fabian-hiller / valibot

The modular and type safe schema library for validating structural data 🤖
https://valibot.dev
MIT License
6k stars 186 forks source link

feat: add base64 string validation #644

Closed morinokami closed 2 months ago

morinokami commented 3 months ago

Hi, I noticed there was no validation action for Base64 strings, so I added it. Thanks!

fabian-hiller commented 3 months ago

Thank you very much! I will try to review and merge it as soon as possible, but don't expect a quick response as I just released Valibot v0.31.0 and should be working on other things first.

As a workaround you can use the regex with our regex action: https://valibot.dev/api/regex/

fabian-hiller commented 3 months ago

I plan to review and merge this PR next week.

fabian-hiller commented 2 months ago

I refactored the regex and unit tests. Tomorrow I will have a look at the documentation and probably merge this PR.

fabian-hiller commented 2 months ago

v0.37.0 is available