Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
We are now using a raw F string for the regex
  • Loading branch information
JessicaTegner committed Aug 18, 2024
commit 9bf69b041adb7c8cbfe8fa6a3c7cb53e7ad8bbaa
2 changes: 1 addition & 1 deletion pypandoc/pandoc_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _get_pandoc_urls(version="latest"):
# regex for the binaries
uname = platform.uname()[4]
processor_architecture = "arm" if uname.startswith("arm") or uname.startswith("aarch") else "amd"
regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:" + processor_architecture + r"|x86|mac).*\.(:?msi|deb|pkg)")
regex = re.compile(fr"/jgm/pandoc/releases/download/.*(?:{processor_architecture}|x86|mac).*\.(?:msi|deb|pkg)")
# a list of urls to the binaries
pandoc_urls_list = regex.findall(content.decode("utf-8"))
# actual pandoc version
Expand Down