mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 08:36:39 +00:00
fix(cask): resolve warning about regular expression
This commit is contained in:
@@ -14,7 +14,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]*)$/.match(tag)
|
||||
next unless m
|
||||
|
||||
m[1]
|
||||
|
||||
@@ -14,7 +14,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]*)$/.match(tag)
|
||||
next unless m
|
||||
|
||||
m[1]
|
||||
|
||||
Reference in New Issue
Block a user