Skip to content

Commit 50df78f

Browse files
committed
[Fix] sort-comp: | isn’t a valid regex flag; u and s are
1 parent a7f6a8b commit 50df78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/sort-comp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module.exports = {
125125
// Public
126126
// --------------------------------------------------------------------------
127127

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

130130
/**
131131
* Get indexes of the matching patterns in methods order configuration

0 commit comments

Comments
 (0)