Skip to content

Unmatchable text: apply just returns nil? #12

Description

@mikebaldry

Hi there,

When trying to match against invalid data, apply just seems to return nil, is there some way to generate a nicer result, perhaps where it was unable to match the next byte, at what position and what it expected and what it got?

It would be good if apply returned a standard {:ok, capture_result} or {:error, something_else}

Cheers.

Great library by the way :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions