Skip to content

Commit

Permalink
fix(loader): Fixed bug with sync loading filename
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Sep 18, 2016
1 parent 86be05c commit 84c8562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function(source, sourcemap) {
var sync = !!loadStringQuery.sync;

// get the module path string
var pathString = hasQuery ? loadString.substr(0, (queryIndex - 1)) : loadString;
var pathString = hasQuery ? loadString.substr(0, queryIndex) : loadString;

// split the string on the delimiter
var parts = pathString.split(delimiter);
Expand Down

0 comments on commit 84c8562

Please sign in to comment.