mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Don't normalize the root directory
This commit is contained in:
parent
88abe75338
commit
2e7b59e10b
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user