From 3c832b4e995487813bdb31eb533947f69460fe62 Mon Sep 17 00:00:00 2001 From: Scott Arciszewski <58194612+scottarc@users.noreply.github.com> Date: Wed, 25 Mar 2020 04:39:15 -0400 Subject: [PATCH 1/3] chore: Make unicorn/regex-shorthand happy --- packages/core-js/modules/web.url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-js/modules/web.url.js b/packages/core-js/modules/web.url.js index 4e4df4ba15dd..5ac501a068ba 100644 --- a/packages/core-js/modules/web.url.js +++ b/packages/core-js/modules/web.url.js @@ -31,7 +31,7 @@ var INVALID_HOST = 'Invalid host'; var INVALID_PORT = 'Invalid port'; var ALPHA = /[A-Za-z]/; -var ALPHANUMERIC = /[\d+\-.A-Za-z]/; +var ALPHANUMERIC = /[\d+.A-Za-z\-]/; var DIGIT = /\d/; var HEX_START = /^(0x|0X)/; var OCT = /^[0-7]+$/; From 2b4d53eadeb62146a81f771e907143b5eac02ecf Mon Sep 17 00:00:00 2001 From: Scott Arciszewski Date: Wed, 25 Mar 2020 04:49:58 -0400 Subject: [PATCH 2/3] Remove "unnecessary" escape character --- packages/core-js/modules/web.url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-js/modules/web.url.js b/packages/core-js/modules/web.url.js index 5ac501a068ba..cc3c8a70f03b 100644 --- a/packages/core-js/modules/web.url.js +++ b/packages/core-js/modules/web.url.js @@ -31,7 +31,7 @@ var INVALID_HOST = 'Invalid host'; var INVALID_PORT = 'Invalid port'; var ALPHA = /[A-Za-z]/; -var ALPHANUMERIC = /[\d+.A-Za-z\-]/; +var ALPHANUMERIC = /[\d+.A-Za-z-]/; var DIGIT = /\d/; var HEX_START = /^(0x|0X)/; var OCT = /^[0-7]+$/; From 07c546c1f23435206ba0c03368136c133280698b Mon Sep 17 00:00:00 2001 From: Scott Arciszewski Date: Wed, 25 Mar 2020 05:05:06 -0400 Subject: [PATCH 3/3] chore: Make optimize-regex/optimize-regex happy too --- packages/core-js/modules/web.url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-js/modules/web.url.js b/packages/core-js/modules/web.url.js index cc3c8a70f03b..c6b0372503e7 100644 --- a/packages/core-js/modules/web.url.js +++ b/packages/core-js/modules/web.url.js @@ -31,7 +31,7 @@ var INVALID_HOST = 'Invalid host'; var INVALID_PORT = 'Invalid port'; var ALPHA = /[A-Za-z]/; -var ALPHANUMERIC = /[\d+.A-Za-z-]/; +var ALPHANUMERIC = /[\d+-.A-Za-z]/; var DIGIT = /\d/; var HEX_START = /^(0x|0X)/; var OCT = /^[0-7]+$/;