Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Search: app:"…" breaks on app names with spaces

Open Beginner friendly
#9 0 comments 0 reactions 0 assignees View on GitHub

@jay23606 is already working on this.

Since Oct 11, 2026.

  • #34 by @jay23606 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
search

Research direction

Start with the tokenizer in parseQuery in src/shared/search.ts, the regex /"[^"]*"|\S+/g, and the quote stripping in the app: branch. Reproduce with app:"Visual Studio Code" hello and check that it yields one app filter visual studio code plus the term hello. Add cases to tests/search.test.ts for quoted app names, a bare quoted phrase, and app:slack, then run pnpm test.

Written by the indexing model from the issue text.

Description

bug good first issue

Filtering by an app whose name has a space doesn't work. parseQuery keeps quoted text together only when the quote starts the token, so app:"Visual Studio Code" hello currently parses as:

{ terms: ['studio', 'code"', 'hello'], kinds: [], apps: ['visual'] }

It should be:

{ terms: ['hello'], kinds: [], apps: ['visual studio code'] }

The same happens with app:"Google Chrome", app:"Microsoft Word" and so on.

Where to look
  • src/shared/search.ts: the tokenizer in parseQuery (input.match(/"[^"]*"|\S+/g)) and the quote stripping in the app: branch
  • tests/search.test.ts: the parseQuery tests
Done when
  • app:"Two Words" becomes a single app filter, lowercased, without the quotes
  • A quoted phrase on its own ("exact words") and an unquoted app:slack still work as before
  • New cases in tests/search.test.ts cover these, and pnpm test passes

Suggested pull request title: fix(search): support quoted app names with spaces

New to OpenPaste? CONTRIBUTING.md covers setup, the code conventions and the checks to run before a pull request (pnpm typecheck, pnpm test, pnpm format, pnpm cleaner). Leave a comment if you're picking this up so nobody doubles up.


Generated by Claude Code

Dominant language
TypeScript
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from alexsilver8/openpaste

All issues in alexsilver8/openpaste

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.