TOO BUGGY! Absolutely wrong behavior if file name contains some dots.

Aperta
#74 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
desktop

Direzione di ricerca

Start with the filename replacement logic for “Replace” mode and “Entire filename,” then trace how the regular expression handles names containing dots. Reproduce the report with a file named 123.abc, pattern .*, and replacement @; done means the resulting filename is @. The issue names no source file or test, so locate the relevant code and add a regression test.

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

Descrizione

If I set mode to 'Replace' & 'Entire filename', it is expected the input regexp should match the entire filename, but in fact, the regexp only matches part of the filename if it contains some dots.

Just create a file named 123.abc, input the regexp .* and replace with @, the expected filename should be @.
But this buggy software just give totally wired result. And you'll easily find even more bugs if you continue to use it.

Have you even tested your program?

Lingua principale
Python
Stelle
118
Fork
22
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 linuxmint/bulky

Tutte le issue di linuxmint/bulky

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.