Skip to content

Commit

Permalink
Update UG for case sensitive search
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwei99 committed Oct 28, 2021
1 parent cfcd7e5 commit e99eb9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ Finds all persons whose names **and** tags matches ALL keywords provided.

Notes:
* `find` is case-insensitive by default. e.g. `hans` will match `Hans`
* However, users can opt for case-sensitive search by including the `c/` flag after the command word
* However, users can opt for case-sensitive search by including the `c/` flag **after** the command word.
* `c/` case-sensitive search applies **ONLY** to tags
* The order of the keywords does not matter. e.g. `n/Hans t/football` will return the same result as
`t/friends n/Hans`
* Both name and tags are searched.
Expand Down Expand Up @@ -225,6 +226,8 @@ Finds all persons whose names **or** tags contain ANY of the given keywords.

Notes:
* `findAny` is case-insensitive by default. e.g. `hans` will match `Hans`
* However, users can opt for case-sensitive search by including the `c/` flag **after** the command word.
* `c/` case-sensitive search applies **ONLY** to tags
* The order of the keywords does not matter. e.g. `Hans Bo` will match `Bo Hans`
* Both name and tags are searched.
* Only full words will be matched e.g. `Han` will not match `Hans`
Expand Down

0 comments on commit e99eb9f

Please sign in to comment.