dixonwille / wmenu

An easy to use menu structure for cli applications that prompts users to make choices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trailing delimiter

NicolasSiver opened this issue · comments

Looks like a trailing delimiter considered as an invalid response.
For example, if space is a delimiter, such response will not be accepted:

0_1_
// where underscore _ is a space for clarity

Will actually need to look into a different package to trim before split. Thanks

https://github.com/dixonwille/wlog I would like to reference this package as well that I am using for getting answers and printing to string. I may open an issue there to add an enhancement to that package to be able to trim the response by certain characters (spaces, ,, or whatever delimiter you use).

dixonwille/wlog#1

Todo:

  • Update WLog
  • Trim the split string with spaces
  • Update bug version for v3 non breaking change.