Skip to content

Commit f92d610

Browse files
authored
Fix regex patterns for PLATFORMIO_URL_VERSION_RE (#365)
1 parent 0735836 commit f92d610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/penv_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
github_actions = bool(os.getenv("GITHUB_ACTIONS"))
3939

4040
PLATFORMIO_URL_VERSION_RE = re.compile(
41-
r'/v?(\d+\.\d+\.\d+(?:[.-]\w+)?(?:\.\d+)?)(?:\.(?:zip|tar\.gz|tar\.bz2))?$',
41+
r'/v?(\d+\.\d+\.\d+(?:[.-](?:alpha|beta|rc|dev|post|pre)\d*)?(?:\.\d+)?)(?:\.(?:zip|tar\.gz|tar\.bz2))?$',
4242
re.IGNORECASE,
4343
)
4444

0 commit comments

Comments
 (0)