Don't normalize the root directory

This commit is contained in:
Patrick Steele-Idem 2014-12-15 10:23:59 -07:00
parent 88abe75338
commit 2e7b59e10b

View File

@ -67,7 +67,9 @@ function tryNodeModules(parent, found) {
}
function findHelper(dirname, found) {
dirname = dirname.replace(trailingSlashRegExp, '');
if (dirname.length !== 1) {
dirname = dirname.replace(trailingSlashRegExp, '');
}
if (!excludedDirs[dirname]) {
tryDir(dirname, found);
@ -99,6 +101,7 @@ function find(dirname, registeredTaglibs) {
}
function excludeDir(dirname) {
dirname = dirname.replace(trailingSlashRegExp, '');
excludedDirs[dirname] = true;
}