pr_check: Fix matching

Fixes #2125
Merge pull request #2126 from authmillenon/issue-2125

pr_check: Fix matching