We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23f6f09 commit 7111c16Copy full SHA for 7111c16
pypandoc/pandoc_download.py
@@ -58,7 +58,7 @@ def _get_pandoc_urls(version="latest"):
58
# regex for the binaries
59
uname = platform.uname()[4]
60
processor_architecture = "arm" if uname.startswith("arm") or uname.startswith("aarch") else "amd"
61
- regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\\.(?:msi|deb|pkg)")
+ regex = re.compile(fr"/jgm/pandoc/releases/download/.*(?:{processor_architecture}|x86|mac).*\.(?:msi|deb|pkg)")
62
# a list of urls to the binaries
63
pandoc_urls_list = regex.findall(content.decode("utf-8"))
64
# actual pandoc version
0 commit comments