Skip to content

Commit

Permalink
[Fix] sort-comp: | isn’t a valid regex flag; u and s are
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 21, 2020
1 parent a7f6a8b commit 50df78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/sort-comp.js
Expand Up @@ -125,7 +125,7 @@ module.exports = {
// Public
// --------------------------------------------------------------------------

const regExpRegExp = /\/(.*)\/([g|y|i|m]*)/;
const regExpRegExp = /\/(.*)\/([gimsuy]*)/;

/**
* Get indexes of the matching patterns in methods order configuration
Expand Down

0 comments on commit 50df78f

Please sign in to comment.