Skip to content

Commit 8153db3

Browse files
Revert "Fix getCurrent to work with folder and files with '.' in his names."
This reverts commit c7ffbf0.
1 parent 188081f commit 8153db3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/helpers/raw.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,8 @@ exports.getCurrent = function(sourcePath){
278278
// windows
279279
sourcePath = sourcePath.replace(/\\/g,'/')
280280

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('.')
281+
// this could be a tad smarter
282+
var namespace = sourcePath.split(".")[0].split("/")
284283

285284
return {
286285
source: namespace[namespace.length -1],

0 commit comments

Comments
 (0)