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

Incorrect results when the original text contains aribitrary whitespace throughout

Aperta
#7 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@dmnapolitano ci sta già lavorando.

Dal 25/9/2019.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

(Source)

original_text = """in Just-\nspring          when the world is mud-\nluscious the little\nlame balloonman\n\nwhistles          far          and wee\n\nand eddieandbill come\n   
running from marbles and\npiracies and it's\nspring\n\nwhen the world is puddle-wonderful\n\nthe queer\nold balloonman whistles\nfar          and             wee\nand bettyandisbel\
 come dancing\n\nfrom hop-scotch and jump-rope and\n\nit's\nspring\nand\n\n         the\n\n                  goat-footed\n\nballoonMan          whistles\nfar\nand\nwee"""
match.match(original_text, ["when", "the", "world", "is", "mud-luscious", 
"the", "little", "lame", "balloonman", "whistles", "far", "and", "wee"])

This produces incorrect results, failing to match all the way to the end of "wee" (let alone "whistles"):

[(25, 92, 'when the world is mud-\nluscious the little\nlame balloonman\n\nwhistle')]
Lingua principale
Python
Stelle
20
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 EducationalTestingService/match

Tutte le issue di EducationalTestingService/match

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.