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 whitespace trimming in search page #1625

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented Nov 27, 2024

#1600 broke display of parsed words for languages with spaces. This should restore it back to how it was.

Trimming function benchmarked at 794M ops/s (compared to regex at 10M ops/s and looping at 28M ops/s).

Naming is hard, trimTrailingWhitespacePlusSpace is the best I could come up with... Without making the variable name a whole book.

The value for queryInput can be trimmed on the end normally since the only thing it does is modify what is in the search bar and not any of the parsing.

@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug area/ui-ux The issue or PR is related to UI/UX/Design labels Nov 27, 2024
@Kuuuube Kuuuube requested a review from a team as a code owner November 27, 2024 16:50
@jamesmaa jamesmaa added this pull request to the merge queue Nov 27, 2024
Merged via the queue into yomidevs:master with commit 22d5f41 Nov 27, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants