In a previous version I added a test case to cover perfdata with equal sign but no value and the perfdata is simply ignored because it doesn't match the second regular expression. I didn't test when there is no equal sign. 

I will test it on monday if possible, and include more unittests to cover these corner cases.