pr_check: Fix matching

Fixes #2125