fix(build-variants): make build variant matching more restrictive

In practice, build variants will be numbers, so to avoid issues with possible naming conflicts, let's enforce them to be numbers.
This commit is contained in:
2025-06-27 11:01:32 +01:00
parent 6a7a058d67
commit 5e596a07c4
4 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ cask 'emacs-app-pretest' do
url 'https://github.com/jimeh/emacs-builds.git'
strategy :git do |tags|
tags.map do |tag|
m = /^Emacs-(.+-pretest(-.+)?)$/.match(tag)
m = /^Emacs-(.+-pretest(-\d+)?)$/.match(tag)
next unless m
m[1]

View File

@@ -22,7 +22,7 @@ cask 'emacs-app' do
url 'https://github.com/jimeh/emacs-builds.git'
strategy :git do |tags|
tags.map do |tag|
m = /^Emacs-(\d+\.\d+[a-z]*(-.+)?)$/.match(tag)
m = /^Emacs-(\d+\.\d+[a-z]*(-\d+)?)$/.match(tag)
next unless m
m[1]

View File

@@ -12,7 +12,7 @@ cask 'emacs-app-pretest' do
url 'https://github.com/jimeh/emacs-builds.git'
strategy :git do |tags|
tags.map do |tag|
m = /^Emacs-(.+-pretest(-.+)?)$/.match(tag)
m = /^Emacs-(.+-pretest(-\d+)?)$/.match(tag)
next unless m
m[1]

View File

@@ -12,7 +12,7 @@ cask 'emacs-app' do
url 'https://github.com/jimeh/emacs-builds.git'
strategy :git do |tags|
tags.map do |tag|
m = /^Emacs-(\d+\.\d+[a-z]*(-.+)?)$/.match(tag)
m = /^Emacs-(\d+\.\d+[a-z]*(-\d+)?)$/.match(tag)
next unless m
m[1]