Merge pull request #674 from johlrich/patch-1

Change getModuleName regex to only remove extenion
This commit is contained in:
Sebastian McKenzie 2015-02-03 17:54:04 +11:00
commit 6674611b26

View File

@ -171,7 +171,7 @@ DefaultFormatter.prototype.getModuleName = function () {
if (!opts.keepModuleIdExtensions) {
// remove extension
filenameRelative = filenameRelative.replace(/\.(.*?)$/, "");
filenameRelative = filenameRelative.replace(/\.(\w*?)$/, "");
}
moduleName += filenameRelative;