Skip to content

Commit

Permalink
Update src/huggingface_hub/hf_api.py
Browse files Browse the repository at this point in the history
Co-authored-by: Lysandre Debut <[email protected]>
  • Loading branch information
Wauplin and LysandreJik authored Aug 17, 2022
1 parent e820b70 commit 44d5941
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3262,6 +3262,7 @@ def _parse_revision_from_pr_url(pr_url: str) -> str:
```py
>>> _parse_revision_from_pr_url("https://huggingface.co/bigscience/bloom/discussions/2")
"refs/pr/2"
```
"""
re_match = re.match(_REGEX_DISCUSSION_URL, pr_url)
if re_match is None:
Expand Down

0 comments on commit 44d5941

Please sign in to comment.