Skip to content

Installer Locale and Locale locale have different regex requirements #1592

Closed

Description

@jamespik

Installers allow:
"Locale": {
"type": [ "string", "null" ],
"minLength": 1,
"maxLength": 20,
"description": "The package meta-data locale"
},

While Locale files allow:
"PackageLocale": {
"type": "string",
"pattern": "^([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*$",
"maxLength": 20,
"description": "The package meta-data locale"
},

Which is the expected Locale Restriction?

Activity

  1. ghost added
    Needs-Triage
    on Oct 14, 2021
  2. added
    Issue-Bug
    and removed
    Needs-Triage
    on Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Issue-Bug

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions