Skip to content

Commit

Permalink
Merge pull request #190812 from Homebrew/update-programmer-dvorak
Browse files Browse the repository at this point in the history
programmer-dvorak: update livecheck
  • Loading branch information
daeho-ro authored Nov 3, 2024
2 parents b5dc522 + 31b4972 commit 12a13f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Casks/p/programmer-dvorak.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@

livecheck do
url :homepage
strategy :page_match do |page|
v = page[/href=.*?ProgrammerDvorak-(\d+(?:_\d+)*)\.pkg\.zip/i, 1]
v.tr("_", ".")
regex(/href=.*?ProgrammerDvorak[._-]v?(\d+(?:[._]\d+)+)\.pkg\.zip/i)
strategy :page_match do |page, regex|
match = page.match(regex)
next if match.blank?

match[1].tr("_", ".")
end
end

Expand Down

0 comments on commit 12a13f4

Please sign in to comment.