diff options
Diffstat (limited to 'accounts/gkleen@sif/utils')
| -rw-r--r-- | accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py b/accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py index 2fff9f07..09bb8651 100644 --- a/accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py +++ b/accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py | |||
| @@ -27,7 +27,7 @@ class ChangeDetectionSession(requests.Session): | |||
| 27 | 27 | ||
| 28 | def main(): | 28 | def main(): |
| 29 | def pr_number(s): | 29 | def pr_number(s): |
| 30 | if m := re.fullmatch(r'(?:https?://github\.com/NixOS/nixpkgs/pull/)?(?P<pr>[0-9]+)', s, flags=re.I): | 30 | if m := re.fullmatch(r'(?:https?://github\.com/NixOS/nixpkgs/pull/)?(?P<pr>[0-9]+)(?:[^0-9].*)?', s, flags=re.I): |
| 31 | return int(m.group('pr')) | 31 | return int(m.group('pr')) |
| 32 | else: | 32 | else: |
| 33 | raise ValueError | 33 | raise ValueError |
