diff options
author | Siri Hansen <[email protected]> | 2011-05-13 10:13:29 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2011-05-13 10:13:29 +0200 |
commit | b1dd3337729aa9340dba45c194c1896944262376 (patch) | |
tree | 9c7ad2938f829ce7c7b6b0b4013d69103f8d47e6 /lib/sasl/src | |
parent | de5377beb78d2fc0f0bea964fb9244722492a448 (diff) | |
download | otp-b1dd3337729aa9340dba45c194c1896944262376.tar.gz otp-b1dd3337729aa9340dba45c194c1896944262376.tar.bz2 otp-b1dd3337729aa9340dba45c194c1896944262376.zip |
Bugfix in rb:filter when using 're' (regexp) and 'no'
There was an inconsistency in the filter function, as
filter([{Key,Regexp,re,no}]) did not work in the same way as
filter([{Key,Value,no}])
The first filter only returned 'proplist' reports, while the second
returned *all* reports that didn't match the Value. This has been
corrected so both filters now return all reports that don't match.
Diffstat (limited to 'lib/sasl/src')
-rw-r--r-- | lib/sasl/src/rb.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sasl/src/rb.erl b/lib/sasl/src/rb.erl index 5fdb0b1695..8004ef2c5a 100644 --- a/lib/sasl/src/rb.erl +++ b/lib/sasl/src/rb.erl @@ -789,7 +789,7 @@ filter_report([{Key, RegExp, re}|T], Msg) -> filter_report([{Key, RegExp, re, no}|T], Msg) -> case proplists:get_value(Key, Msg) of undefined -> - false; + true; Value -> Subject = lists:flatten(io_lib:format("~p",[Value])), case run_re(Subject, RegExp) of |