Skip to content

Commit

Permalink
Merge pull request #22 from yorkie/fix/regexp
Browse files Browse the repository at this point in the history
fix regExp, should use RegExp object
  • Loading branch information
sokra committed Feb 16, 2016
2 parents ad11688 + 3a1c869 commit 93bfe64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ exports.interpolateName = function interpolateName(loaderContext, name, options)
});
if(regExp && loaderContext.resourcePath) {
var re = new RegExp(regExp);
var match = loaderContext.resourcePath.match(regExp);
var match = loaderContext.resourcePath.match(re);
if(match) {
for (var i = 0; i < match.length; i++) {
var re = new RegExp("\\[" + i + "\\]", "ig");
Expand Down

0 comments on commit 93bfe64

Please sign in to comment.