Skip to content

Commit

Permalink
add jsx suffix pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
ielgnaw committed May 25, 2017
1 parent d86e9fd commit a6e7e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ exports.buildPattern = function (dirs, extensions) {
extensions = (extensions || 'js,css,less,html')
.replace(/\s+/g, '')
.replace(/\bhtml?\b/gi, 'htm,html')
.replace(/\bjs\b/gi, 'js,es,es6')
.replace(/\bjs\b/gi, 'js,jsx,es,es6')
.replace(/^,|,\s*(?=,|$)/g, '');

var regExt = extensions.replace(/,/g, '|').replace(/(?=[^\w|])/g, '\\');
Expand Down

0 comments on commit a6e7e35

Please sign in to comment.