Skip to content

String.replace_leading leads to infinite recursion #5019

@nroi

Description

@nroi

String.replace_leading("foo", "", "")

should return "foo", but instead it runs forever.
Tested with elixir version 1.3. and Erlang version 19.0.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions