Closed olydis closed 7 years ago
Passing in file:///C:/P%C3%A9ter/test.txt returns C:\\Péter\\test.txt instead of C:\\Péter\\test.txt (note that %C3%A9 is the correct representation of é).
file:///C:/P%C3%A9ter/test.txt
C:\\Péter\\test.txt
C:\\Péter\\test.txt
%C3%A9
é
The fix should be trivial: In this line you use the deprecated unescape function instead of decodeURI (which correctly handles the above case).
unescape
decodeURI
BTW, awesome package (together with get-uri)! It's super light-weight helper packages like these that make developing for node so much fun 😄
get-uri
Passing in
file:///C:/P%C3%A9ter/test.txt
returnsC:\\Péter\\test.txt
instead ofC:\\Péter\\test.txt
(note that%C3%A9
is the correct representation ofé
).The fix should be trivial: In this line you use the deprecated
unescape
function instead ofdecodeURI
(which correctly handles the above case).BTW, awesome package (together with
get-uri
)! It's super light-weight helper packages like these that make developing for node so much fun 😄