Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct tests for Unicode Language Identifier #3173

Merged
merged 1 commit into from
Sep 2, 2021

Commits on Sep 1, 2021

  1. Correct tests for Unicode Language Identifier

    The underscore character "_" is only accepted for the sep production [1]
    when the backwards-compatibility extensions [2] are enabled. However,
    ECMA-402 only accepts Unicode BCP 47 locale identifiers [3], meaning
    identifiers *without* the backwards-compatibility extensions.
    
    [1] https://unicode.org/reports/tr35/#Unicode_language_identifier
    [2] https://unicode.org/reports/tr35/#BCP_47_Conformance
    [3] https://tc39.es/ecma402/#sec-language-tags
    jugglinmike committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    19874bc View commit details
    Browse the repository at this point in the history