fix(cask): resolve warning about regular expression

This commit is contained in:
2021-07-03 01:23:33 +01:00
parent 11211a76cd
commit abb2f04915
2 changed files with 2 additions and 2 deletions

View File

@@ -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]

View File

@@ -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]