AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 349 forks source link

feat: add regexp validator #461

Closed lzakharov closed 1 year ago

AlecAivazis commented 1 year ago

Yea I agree with you @mislav. For me, the biggest reason is the error message. The user of the cli shouldn't really know that the tool is using a regexp to validate their input so having this message leak that out feels a little awkward / too low-level

lzakharov commented 1 year ago

Thanks for the comments, got you!:)