[erlang-questions] Bugfix to regexp.erl
Robert Virding
robert.virding@REDACTED
Sun Oct 22 23:28:25 CEST 2006
Here is a small patch to my regexp.erl which fixes wo small but
important bugs in the code, one old, one new:
482c482
< re_apply(eos, More, [$\n|S], P) -> re_apply_more(More, S, P);
---
> re_apply(eos, More, [$\n|_]=S, P) -> re_apply_more(More, S, P);
535c535
< comp_apply([], P, St, DFA, _Accept) ->
---
> comp_apply([], P, St, DFA, Accept) ->
538c538
< #dfa_state{accept=false} -> nomatch
---
> #dfa_state{accept=false} -> Accept
The first patch should also be applied to the official regexp.
This patch is also in trapexit.org as a reply to the original posting.
Robert
More information about the erlang-questions
mailing list