DescriptionAdd normalizePath to Uri class.
The algorithm for removing '.' and '..' from a path is only available through the [resolve] method.
This change makes it available directly as a function on a Uri, returning a new Uri if necessary.
The current workaround is to do:
var normalizedUri = new Uri().resolveUri(originalUri);
R=sgjesse@google.com
Committed: https://code.google.com/p/dart/source/detail?r=45163
Patch Set 1 #Patch Set 2 : Add test. #
Messages
Total messages: 4 (1 generated)
|