From 50df78f3875f04b3b1e5cd154943a4d410e6f91a Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 21 Jan 2020 15:36:28 -0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20`sort-comp`:=20`|`=20isn=E2=80=99t=20a?= =?UTF-8?q?=20valid=20regex=20flag;=20`u`=20and=20`s`=20are?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rules/sort-comp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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