Fix `type:path` not working on zoekt codepath
Created by: attfarhan
Fixes https://github.com/sourcegraph/sourcegraph/issues/6220.
Zoekt codepath previously always passed false
to the fileMatchOnly
param in parseRe
. Now it looks at patternMatchesPath
and patternMatchesContent
args to pass the correct value.
Test plan: added unit test