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

strip whitespace from package lookup #8

Closed
soxofaan opened this issue May 15, 2024 · 1 comment · Fixed by #9
Closed

strip whitespace from package lookup #8

soxofaan opened this issue May 15, 2024 · 1 comment · Fixed by #9

Comments

@soxofaan
Copy link

soxofaan commented May 15, 2024

When using the package search bar at https://pypi-browser.org/ on my phone, the autocomplete functionality sometimes adds a space after the name I entered. For example: I start typing reques, I get a suggestion for requests, I tap it, and automatically a space is appended. But then when you submit, you go to https://pypi-browser.org/package/requests%20 (note the encoded trailing space) which fails with

Package 'requests ' does not exist on PyPI

you should strip leading and trailing white space before doing the query (or before submitting the form)

@chriskuehl
Copy link
Owner

Good idea, fixed in v0.0.8.

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 a pull request may close this issue.

2 participants