We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 188081f commit 8153db3Copy full SHA for 8153db3
lib/helpers/raw.js
@@ -278,9 +278,8 @@ exports.getCurrent = function(sourcePath){
278
// windows
279
sourcePath = sourcePath.replace(/\\/g,'/')
280
281
- var namespace = sourcePath.split("/")
282
- var fnameSplit = namespace[namespace.length-1].split('.')
283
- namespace[namespace.length-1] = fnameSplit.slice(0,fnameSplit.length-1).join('.')
+ // this could be a tad smarter
+ var namespace = sourcePath.split(".")[0].split("/")
284
285
return {
286
source: namespace[namespace.length -1],
0 commit comments