hideRefs: add support for matching full refs