summaryrefslogtreecommitdiffstats
path: root/cnucnu/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'cnucnu/__init__.py')
-rw-r--r--cnucnu/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cnucnu/__init__.py b/cnucnu/__init__.py
index 8c67f94..e96cfdc 100644
--- a/cnucnu/__init__.py
+++ b/cnucnu/__init__.py
@@ -55,7 +55,10 @@ ALIASES = {
},
"GITHUB-TAGS": {
"url": "https://api.github.com/repos/{name}/tags",
- "regex": '"name":\s*"([\d\.]+)"',
+ # Match strings like:
+ # "name": "v0.3.0"
+ # "name": "1.2.3"
+ "regex": '"name":\s*"[^\d]*([\d\.]+)"',
},
"GNU-DEFAULT": {
"url": "http://ftp.gnu.org/gnu/{name}/"