get-it
get-it copied to clipboard
Unmatchable text: apply just returns nil?
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 :)