Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#9 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@jay23606 ci sta già lavorando.

Dal 11/10/2026.

  • #34 di @jay23606 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
search

Direzione di ricerca

Inizia dal tokenizer in parseQuery di src/shared/search.ts, dalla regex /"[^"]*"|\S+/g e dalla rimozione delle virgolette nel ramo app:. Riproduci con app:"Visual Studio Code" hello e verifica che generi un filtro applicazione visual studio code più il termine hello. Aggiungi casi in tests/search.test.ts per nomi di app tra virgolette, una frase tra virgolette da sola e app:slack, quindi esegui pnpm test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
0
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di alexsilver8/openpaste

Tutte le issue di alexsilver8/openpaste

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.