Revert "Fix ignored regexp check."

This reverts commit c3dbc9376ac2961e0585fd80d0a02ad284dd23f3.