thedevsaddam / govalidator

Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.
MIT License
1.32k stars 122 forks source link

Regex for blank space is not working #113

Open akshay-pj-open opened 2 years ago

akshay-pj-open commented 2 years ago

govalidator.MapData { username : []string{"regex:\\S+"} }

This rule is not throwing an error and accepts username with spaces in between.