fix returning NaN when regex doesn't match
add report