Hi,

Trying to use url.parse to process an uri retrieved from a json object, it 
returns the url.href, path, and everything related escaping all backslashes.
It returns:
c:%5CUsers%5CAdministrator%5CDesktop%5CTest%5Clib-local

instead of:
c:\Users\Administrator\Desktop\Test\lib-local

uri from json file:

"local-lib": {
            "uri": "C:\\Users\\Administrator\\Test\\lib-local"
        }

I know that url.parse it shouldn't be used on local paths as is described 
above, but this behavior it only can be reproduced using nodejs *11.xx*(%5C), 
using node 
*10.xx* it works just fine, as expected 
(c:\Users\Administrator\Desktop\Test\lib-local).

I've tested this under Windows 7 & 8, with the same behavior.

Just wanted to give you the heads-up about this inconsistency, I can manage 
the returned value without url.parse, but I repeat this is an strange 
behavior.

Thanks,
Martin Gonzalez

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/cddb1b1d-361d-409a-a377-9e01a42a4527%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to