Closed ModProg closed 2 years ago
Just for confirmation, do you mean to add an optional restriction to the strings? So that when the user is asked to input a value, it'll refuse anything that doesn't match the custom format/pattern?
Yes, maybe just display "Not allowed character: -
", or "Does not match pattern [A-Za-z_][A-Za-z0-9_]*
".
Just added support for various string input validators and pushed a new release. They're documented over here.
Very nice, only nitpick: Name a crate
as description for everything in the documentation :D
Ah, he he... Darn copy & paste. Will improve that tomorrow 😅
Maybe I will look into implementing this myself