Skip to content

split regression between 1.13 and 1.14 #590

@toots

Description

@toots

There is a regression between 1.13 and 1.14 w.r.t. to split:

1.14:

# Re.Pcre.(split ~rex:(regexp "\\/") "///");;
- : string list = [""; ""]

1.13:

# Re.Pcre.(split ~rex:(regexp "\\/") "///");;
- : string list = [""; ""; ""; ""]

Looking at 8ec3918 this seems to be intentional.

Could you advise if this module intends on breaking the previous implementation starting with 1.14?

My preference would be to keep existing one so that I don't have to debug multiple regexp calls (and potentially our users).

But I understand that some times incorrect implementations have to be changed.

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