fis-project-analyzer
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -11,3 +11,3 @@ /* | ||
var assert = require('assert'); | ||
var path = require('path'); | ||
/** | ||
@@ -39,3 +39,4 @@ * | ||
var configDir = options.configDir || fis.util.realpath(projectPath + "/config"), | ||
configReg = /[\/|\\](.+)-map\.json$/, | ||
configReg = /[\/|\\](.*)-map\.json$/, | ||
moduleReg = /(.*)-map\.json$/, | ||
widgetPreg = /\w+\/widget\/.+\.tpl$/, | ||
@@ -45,3 +46,3 @@ configFiles = fis.util.find(configDir, configReg), | ||
configFiles.forEach(function(file){ | ||
var fileMatch = file.match(configReg); | ||
var fileMatch = path.basename(file).match(moduleReg); | ||
assert.equal(fileMatch.length, 2); | ||
@@ -48,0 +49,0 @@ var fileName = fileMatch[1]; |
{ | ||
"name": "fis-project-analyzer", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "A tool to analyze fis-plus project deps", |
16865
378