-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass "optional" rule with 0 length strings #140
Comments
Yeah, @chasegiunta. It seems like a good idea to include empty strings as optional. But for now, we can't do this because of compatibility reasons. Maybe we could add a second argument to this rule with an |
@imbrn Figured as much! I like the argument idea. |
Do you want to give it a try? @chasegiunta |
@imbrn Sure, will take a look over the weekend. |
Nice! @chasegiunta 👍 |
@imbrn Sorry, I took a look at this I'm afraid this might be above my pay grade 😅. I don't know ES6, don't know how to write tests, and wasn't able to load up any test environment after cloning the repo. Was thinking, since it was seemingly an easy additional, I'd be able to wing it 😔 |
No problem @chasegiunta. |
Would be great if the optional rule would also pass on an empty trimmed string. Guessing there might be a more technical reason as to why you chose not add in, but figured I'd bring it up just in case.
The text was updated successfully, but these errors were encountered: