whitlockjc / json-refs

Various utilities for JSON Pointers (http://tools.ietf.org/html/rfc6901) and JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reference resolving breaks when full path contains a directory name with space character it in

paulkchen opened this issue · comments

If the full path where you execute json-refs contains a space in any of the directory names, reference resolving breaks.

To verify, I cloned json-refs into "~/json refs/json-refs". When I run "gulp test-node", there are 36 failing tests. If I rename "~/json refs" to "~/json-refs", tests all pass.

I have attached output from gulp test-node

json-refs.test.txt

You can quibble with having directory names with spaces in them, and it wouldn't have been MY decision to make it so, but that's the product we ship and have been shipping for over a decade, so don't kill the messenger. 😂

I'll give it a peek. I don't mind either way about the spaces in directory/file names. I thought we already had tests like this but I guess not. :)