Open agritheory opened 5 years ago
The pattern='some_regex' doesn't handle None/ "" inputs.
pattern='some_regex'
None
""
It would be reasonable to pass a validation method in the constructor and have it default to the builtin. This would allow for inline validation, which is almost always better UX.
Input("Enter database name: ", word_color=colors.foreground["blue"], strip=True, valid=my_input_validation),
The
pattern='some_regex'
doesn't handleNone
/""
inputs.It would be reasonable to pass a validation method in the constructor and have it default to the builtin. This would allow for inline validation, which is almost always better UX.