Skip to content

Trim white spaces from search term #851

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

Merged
merged 1 commit into from
Jul 4, 2017

Conversation

DoumanAsh
Copy link
Contributor

@DoumanAsh DoumanAsh commented Jul 4, 2017

It trims white spaces from search term to provide a more accurate results (Ember takes params as it is, including white spaces)

E.g. right now two similar queries would yield different results due to white space:
"conduit" - gives exact match
"conduit "- gives no exact match

It is a minor thing, but occasionally you can copy-pate name with white spaces and etc...
So might be a bit annoying that it changes your result.
I'm not sure that white space is a legal character for crate's name.

@locks
Copy link
Contributor

locks commented Jul 4, 2017

Good idea, thank you!

@locks locks merged commit f99c829 into rust-lang:master Jul 4, 2017
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