softmaker-freeoffice: update livecheck regex (#115558)

This commit is contained in:
neutric 2021-12-08 01:27:52 +01:00 committed by GitHub
parent 37aba6d48b
commit 0be32fc15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,10 +11,10 @@ cask "softmaker-freeoffice" do
livecheck do
url "https://www.freeoffice.com/en/download/servicepacks"
strategy :page_match do |page|
match = page.match(/(\d+)-(\d+)-(\d+):\s*Revision\s*(\d+)/i)
match = page.match(/softmaker[._-]freeoffice[._-](\d+(?:\.\d+)*)\.pkg.*?Revision\s*(\d+)\s*</im)
next if match.blank?
"#{match[1]},#{match[4]}"
"#{match[1]},#{match[2]}"
end
end