Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: able to search tabs/history when the length of the search term >= 2 #4646

Merged
merged 2 commits into from
May 10, 2024

Conversation

cooltey
Copy link
Collaborator

@cooltey cooltey commented May 6, 2024

In the logic block of searching tabs/history, the condition is searchTerm.length > 2. It makes sense for English but not non-English articles (e.g. Chinese). For example, "Captial" in Chinese is "首府", and the length is 2.

Also, in the getSearchResultsFromTabs, the logic is searchTerm.length >= 2, which is inconsistent with the one in the prefixSearch if block.

Bug: T364351

@dbrant dbrant merged commit 9908460 into main May 10, 2024
1 check passed
@dbrant dbrant deleted the fix-search-term-length branch May 10, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants