Skip to content

String.codepoints not returning multiple codepoints #4604

@gringocl

Description

@gringocl

Environment

  • Elixir version (elixir -v): 1.2.5
  • Operating system: osx 10.11.3

Current behavior

v 1.2.5

["e", "́"] = "é" |> String.normalize(:nfd) |> String.codepoints
["e", "é"] = "eé" |> String.normalize(:nfd) |> String.codepoints

Expected behavior

v 1.2.3

["e", "́"] = "é" |> String.normalize(:nfd) |> String.codepoints
["e", "e", "́"] = "eé" |> String.normalize(:nfd) |> String.codepoints

This seems to have changed. Was this expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions