Skip to content

Commit

Permalink
correct regex file extension matching
Browse files Browse the repository at this point in the history
  • Loading branch information
David Adams committed Sep 9, 2016
1 parent d9db199 commit 00339d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ var babelJest = require('babel-jest');

module.exports = {
process: function(src, filename) {
if (filename.match(/\.[css|less|scss|styl]/)) {
if (filename.match(/\.(css|less|scss|styl)$/)) {
return '';
}

return babelJest.process(src, filename);
},
};
};

0 comments on commit 00339d7

Please sign in to comment.