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(search): preserve meaningful dots #9951

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Nov 6, 2023

Summary

Problem

The quick search results have become less useful for queries like ..., for.. and ?..

Hypothesis: If the user searches for foo. or .bar, then the dot is meaningful and shouldn't be merely treated as a word separator (as introduced in #9840).

Solution

Don't treat . as a word separator, if the search term starts or ends with it.


Screenshots

Query Before After
... image image
for.. image image
?. image image

How did you test this change?

Ran yarn && yarn dev on this branch.

If the user searches for `Object.` or `.map`,
then the dot is meaningful and shouldn't be
merely treated as a word separator.
@caugner caugner requested a review from a team as a code owner November 6, 2023 15:42
@caugner caugner requested a review from s-sood November 6, 2023 15:58
@github-actions github-actions bot added the idle label Jan 24, 2024
@caugner caugner removed the request for review from s-sood March 5, 2024 16:03
@github-actions github-actions bot removed the idle label Mar 7, 2024
@argl argl merged commit d84662e into main Mar 19, 2024
15 checks passed
@argl argl deleted the enhance-search-keep-meaningful-dots branch March 19, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants