Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Ignoring Regex to not allowing one of multiple spaces #265

Open
antonioOrtiz opened this issue Apr 28, 2021 · 0 comments
Open

Ignoring Regex to not allowing one of multiple spaces #265

antonioOrtiz opened this issue Apr 28, 2021 · 0 comments

Comments

@antonioOrtiz
Copy link

Package version

"indicative": "^7.4.4",

Node.js and npm version

v14.16.0,  6.14.11

Sample Code (to reproduce the issue)

validations.regex([new RegExp('^([a-zA-Z0-9_])+$')]), 
validations.regex([new RegExp('^\\S+$')])

So in my textarea which I'm validating, this will fire a error

"Foo Bar".  /* entering a string with a space

But this:

"    "    /* just four spaces */

I want no spaces allowed one or more, Or a better to say this if a user entered just spaces it would fail!

Doesn't validate! Please help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant