mirror of https://github.com/tc39/test262.git
Change `alphanum` to character class
Co-Authored-By: Ross Kirsling <rkirsling@gmail.com>
This commit is contained in:
parent
d3b3e5e586
commit
fd90d58f05
|
@ -274,7 +274,7 @@ function isCanonicalizedStructurallyValidLanguageTag(locale) {
|
|||
*/
|
||||
var alpha = "[a-z]",
|
||||
digit = "[0-9]",
|
||||
alphanum = "(?:" + alpha + "|" + digit + ")",
|
||||
alphanum = "[a-z0-9]",
|
||||
variant = "(" + alphanum + "{5,8}|(?:" + digit + alphanum + "{3}))",
|
||||
region = "(" + alpha + "{2}|" + digit + "{3})",
|
||||
script = "(" + alpha + "{4})",
|
||||
|
|
Loading…
Reference in New Issue