From d3b3e5e58655ff1f38e3eec2b2b6997baa3b194b Mon Sep 17 00:00:00 2001 From: Alexey Shvayka Date: Mon, 27 Apr 2020 14:05:22 +0300 Subject: [PATCH] Make `alphanum` a non-capturing group --- harness/testIntl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harness/testIntl.js b/harness/testIntl.js index 104e9a8a5c..7be3498caa 100644 --- a/harness/testIntl.js +++ b/harness/testIntl.js @@ -274,7 +274,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) { */ var alpha = "[a-z]", digit = "[0-9]", - alphanum = "(" + alpha + "|" + digit + ")", + alphanum = "(?:" + alpha + "|" + digit + ")", variant = "(" + alphanum + "{5,8}|(?:" + digit + alphanum + "{3}))", region = "(" + alpha + "{2}|" + digit + "{3})", script = "(" + alpha + "{4})",