mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 13:16:38 +00:00
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:
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user