make relative path test for drive name case insensitive. Fixes #2292.

This commit is contained in:
Luke Page
2014-11-16 15:37:23 +00:00
parent 27dea8ed2b
commit 7572cf44a0

View File

@@ -76,7 +76,7 @@ contexts.Eval.prototype.isMathOn = function () {
};
contexts.Eval.prototype.isPathRelative = function (path) {
return !/^(?:[a-z-]+:|\/)/.test(path);
return !/^(?:[a-z-]+:|\/i)/.test(path);
};
contexts.Eval.prototype.normalizePath = function( path ) {