diff --git a/lib/rules/sort-comp.js b/lib/rules/sort-comp.js index 67efdec716..c94670179e 100644 --- a/lib/rules/sort-comp.js +++ b/lib/rules/sort-comp.js @@ -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