Thread (38 messages) flat view 38 messages, 3 authors, 2016-06-15

Re: [PATCH 3/7] Extract, test and enhance the logic to collapse ../foo paths.

From: Eric Wong <hidden>
Date: 2016-06-15 22:54:52

Jonathan Nieder [off-list ref] wrote:
Eric Wong wrote:
quoted
That said, I'd favor an implementation that split on m{/+} and
collapsed as Michael mentioned.
Sounds sensible.  Is canonicalize_path responsible for collapsing
runs of slashes?  What should _collapse_dotdot do to
"c:/.." or "http://www.example.com/.."?
It should probably just return the root path ("c:/" and
"http://www.example.com/" respectively).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help