From abb2f0491535d38b23e359fe4ffee1eb3deac9c5 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 3 Jul 2021 01:23:33 +0100 Subject: [PATCH] fix(cask): resolve warning about regular expression --- Casks/emacs-app.rb | 2 +- templates/emacs-app.rb.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/emacs-app.rb b/Casks/emacs-app.rb index 6711024f..98589a0a 100644 --- a/Casks/emacs-app.rb +++ b/Casks/emacs-app.rb @@ -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] diff --git a/templates/emacs-app.rb.tpl b/templates/emacs-app.rb.tpl index 081a2631..47a8149d 100644 --- a/templates/emacs-app.rb.tpl +++ b/templates/emacs-app.rb.tpl @@ -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]