matcher: do not prepend '.*' to pattern using ^ after flags
Since the previous commit (fixing wider issue), the code generated strange
regex. This is now fixed and tested.
local test passedaddgroupcopy test passedclone test passedlowlevelcopy test passedslicing test passedissnapshot test passedfindsnapshot test passed