search: treat repo and rev separately when converting from glob to regex
Created by: stefanhengl
relates to #12476
We did not distinguish between repo and rev when converting from glob to regex which means translating the query repo:repo@rev
from glob to regex led to unexpected results.
Before PR
repo:^repo@rev$
After PR
repo:^repo$@rev