nus-cs2103-AY1718S1 / forum

Discussion Forum
5 stars 0 forks source link

Wildcard symbol * and ? in find command #132

Open newalter opened 6 years ago

newalter commented 6 years ago

In CLI(at least for cmd in windows), it is convenient to use "*" as a wildcard symbol to match any string to reduce typing. It also allows fuzzy search if used appropriately. Here is the PR where I introduce "*" as a wildcard symbol in the find command: https://github.com/newalter/main/pull/2

I have extracted the functionality and relevant test files and made a PR against a clean addressbook-level4 branch so that it is more clear.

Update: wildcard symbol "\?" is added to match any non-space unit-length string.