Skip to content
Myr

Updated Util.isAbsolute(path) to return true for Azure absolute paths

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- Azure absolute paths look like \\ip_address\volume\guid\guid\site\wwwroot\...file.js. Changed Util.isAbsolute to return true for paths that start with two backslashes.

authored by Eric Willis · committed by Eric Willis · parent c1d16e0 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/utils.js+1 added
52 unmodified lines
5354exports.isAbsolute = function(path){55 if ('/' == path[0]) return true;56 if (':' == path[1] && '\\' == path[2]) return true;57 if ('\\\\' == path.substring(0, 2)) return true; // Microsoft Azure absolute path58};5960/**61 * Flatten the given `arr`.
253 unmodified lines