about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxnuxnu2
1 files changed, 1 insertions, 1 deletions
diff --git a/xnuxnu b/xnuxnu
index 3be8fd3..26ba397 100755
--- a/xnuxnu
+++ b/xnuxnu
@@ -27,7 +27,7 @@ void_version=$(./xbps-src show "$1" | sed -n '/version/s/[^:]*:[\t]*//p')
 			*github.com*)
 				githubname="$(echo $url | cut -d/ -f4,5)"
 				url="https://api.github.com/repos/$githubname/tags"
-				rx='"name":\s*"\K[^\d]*([\d\.]+)(?=")';;
+				rx='"name":\s*"v?\K[^\d]*([\d\.]+)(?=")';;
 		esac
 
 		echo "fetching $url" 1>&2