We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86be05c commit 84c8562Copy full SHA for 84c8562
src/index.js
@@ -31,7 +31,7 @@ module.exports = function(source, sourcemap) {
31
var sync = !!loadStringQuery.sync;
32
33
// get the module path string
34
- var pathString = hasQuery ? loadString.substr(0, (queryIndex - 1)) : loadString;
+ var pathString = hasQuery ? loadString.substr(0, queryIndex) : loadString;
35
36
// split the string on the delimiter
37
var parts = pathString.split(delimiter);
0 commit comments