Add default string requirement to not be empty #17

Closed
opened 6 years ago by novirium · 2 comments
Owner

Add kwarg to StringSpec to check if a string is not empty (and probably default it to True)

Add kwarg to StringSpec to check if a string is not empty (and probably default it to True)
novirium added the [status] Available [type] Enhancement labels 6 years ago
Poster
Owner

Though this could be done with the regex argument, I think having the default behaviour reject an empty string is probably a good one (otherwise it'd get confused with being optional). Will implement as an additional allowempty argument that defaults to False.

Though this could be done with the regex argument, I think having the default behaviour reject an empty string is probably a good one (otherwise it'd get confused with being optional). Will implement as an additional `allowempty` argument that defaults to `False`.
Poster
Owner

Added in f27f8f1865

Added in f27f8f1865
novirium closed this issue 5 years ago
novirium added [status] Done and removed [status] Available labels 5 years ago
Sign in to join this conversation.
Loading…
There is no content yet.