[erlang-bugs] binary:matches/3 fails in R14A
Tuncer Ayaz
tuncer.ayaz@REDACTED
Sat Dec 3 17:05:12 CET 2011
2010/8/25 Bartosz Kołodziej:
> binary:split/3 fails when option "global" is set and input is an empty
> binary.
>
> 1> binary:split(<<>>,<<"a">>,[global]) gives:
> ** exception error: bad argument
> in function binary:split/3
Seems to be fixed in OTP_R15A-180-g6971b96.
1> binary:split(<<>>,<<"a">>,[global]).
[<<>>]
> The problem lays in binary:matches/3 function:
>
> 2> binary:matches(<<>>,<<"a">>,[global]).
> ** exception error: bad argument
> in function binary:matches/3
> called as binary:matches(<<>>,<<"a">>,[global])
>
> Without "global" option it works just fine.
Same badarg in OTP_R15A-180-g6971b96.
More information about the erlang-bugs
mailing list