Permalink
Browse files

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

- 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.
  • Loading branch information...
Eric Willis
Eric Willis committed Aug 31, 2013
1 parent c1d16e0 commit 9e406dfee22f172c084c900e235e1ac7e9497a24
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/utils.js
View
@@ -54,6 +54,7 @@ exports.locals = function(obj){
exports.isAbsolute = function(path){
if ('/' == path[0]) return true;
if (':' == path[1] && '\\' == path[2]) return true;
if ('\\\\' == path.substring(0, 2)) return true; // Microsoft Azure absolute path
};
/**

0 comments on commit 9e406df

Please sign in to comment.