Skip to content

String normalization is incorrect #9115

@SergeyMell

Description

@SergeyMell

Environment

  • CLI: 7.0.11
  • Cross-platform modules:
    • @nativescript/core: 7.0.13
    • @nativescript/android: "7.0.1"
    • @nativescript/ios: "7.0.6"
  • XCode Version: 12.1

Describe the bug
Expression

String.fromCharCode(233).normalize('NFD') === String.fromCharCode(101, 769)

should be truthy

To Reproduce
Setup the project and put the line above into a console log. You'll get false instead of true

Expected behavior
String normalization should work correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions