From 05e8505f9a1120104bc2c84a131da1727f9071bc Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Thu, 29 Feb 2024 08:16:28 -0500 Subject: [PATCH] clibor: update livecheck The existing `livecheck` block for `clibor` currently returns an `Unable to get versions` error. The regex aims to match text like "Clibor.dmg - v1.3" but the dash has been replaced by an `–` HTML entity. This addresses the issue by updating the regex to match either a literal dash (en, em, or hyphen) or an HTML entity. --- Casks/c/clibor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/c/clibor.rb b/Casks/c/clibor.rb index 8e3302d63f..6cda3c9c69 100644 --- a/Casks/c/clibor.rb +++ b/Casks/c/clibor.rb @@ -15,7 +15,7 @@ cask "clibor" do livecheck do url "https://chigusa-web.com/clibor-for-mac-en/download/" - regex(/Clibor\.dmg\s–\sv?(\d+(?:\.\d+)+)/i) + regex(/Clibor\.dmg\s*(?:[–—-]|&[a-z]+;)?\s*v?(\d+(?:\.\d+)+)/i) end auto_updates true