Double backslashes are turned into one

Aperta
#30 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
tooling

Direzione di ricerca

Start by reproducing the reported round-trip with values containing multiple backslashes, including the UNC-style example, using the parser and serializer entry points. Compare the encoded output after repeated read-and-reencode passes; done means the value does not lose backslashes across round trips and the behavior is covered by a regression test.

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

Descrizione

I'm on windows (don't think it is revelant) and I have a problem with values containing multiple backslashes like \\192.168.1.1, the parser turn the \\ into \

Is it expected behavior? I don't think it should be since a simple read then reencode change the file and lose information.

Exemple:
first pass: \\\\ read as \\ and then encoded as \\
second pass: \\ read as \ and then encoded as \
third pass: \ read as \ and then encoded as \

Lingua principale
JavaScript
Stelle
825
Fork
231
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 npm/ini

Tutte le issue di npm/ini

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.