Skip to content

fix: normalize search queries to lowercase#210

Closed
sacrosanctic wants to merge 2 commits intonpmx-dev:mainfrom
sacrosanctic:fix/search-case-sensitivity
Closed

fix: normalize search queries to lowercase#210
sacrosanctic wants to merge 2 commits intonpmx-dev:mainfrom
sacrosanctic:fix/search-case-sensitivity

Conversation

@sacrosanctic
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Jan 28, 2026 1:53pm
npmx.dev Ready Ready Preview, Comment Jan 28, 2026 1:53pm

Request Review

Comment thread app/composables/useNpmRegistry.ts Outdated

const params = new URLSearchParams()
params.set('text', q)
params.set('text', q.toLowerCase())
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 I'll defer to @danielroe here but I think ideally we would normalize this a bit further upstream so that the caching (line 241–242) can collapse to a normalize key.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that makes sense.

also - if the API returns different results based on case, is this really something we should obscure?

@danielroe
Copy link
Copy Markdown
Member

discussed in discord - we'll track instead improvements in #32, and prevent browsers autocapitalising home page input (which was the issue) in 33aa4da

@danielroe danielroe closed this Jan 28, 2026
@sacrosanctic sacrosanctic deleted the fix/search-case-sensitivity branch January 28, 2026 23:37
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.

3 participants