[PATCH 4.9 22/36] tracing: Fix regex_match_front() to not over compare the test string