update think.alias

This commit is contained in:
lichengyin 2015-12-30 11:08:06 +08:00
parent 63c5ada503
commit e0bb8e0434

View File

@ -911,7 +911,7 @@ think.alias = (type, paths, slash) => {
paths.forEach(path => {
let files = think.getFiles(path);
files.forEach(file => {
if(file.slice(-3) !== '.js' || file[0] === '_'){
if(file.slice(-3) !== '.js' || file[0] === '_' || file.indexOf(think.sep) > -1){
return;
}
let name = file.slice(0, -3);