Fixes T6102. Give "priority" treatment to strings that are exact matches.
Details
Details
- Reviewers
epriestley - Maniphest Tasks
- T6102: Improve typeahead behavior around exact matches
- Commits
- Restricted Diffusion Commit
rP81a13ed8bda8: Search Typeahead - make exact matches show up first
made a bunch of projects with the word project in them including "Project". before patch, "Project" wouldn't even show up if I typed "Project" - now its the second result right after the application "Projects".
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Do we need toLowerCase()? I think we might already have called it on both parts (maybe only one part?) by the time we get here.
Comment Actions
remove toLowerCase for both parts; they must be normalized by now in the stack
tested by searching for PROJECT, project, pRoJeCt, and PROJECT EVER... got the right results each time.