Skip to content

Commit

Permalink
Update Casks/c/crystalmaker.rb
Browse files Browse the repository at this point in the history
See Homebrew#172222 (comment)

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
  • Loading branch information
singularitti and samford committed Apr 26, 2024
1 parent d316b0b commit 1fda0a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Casks/c/crystalmaker.rb
Expand Up @@ -9,9 +9,8 @@

livecheck do
url "https://crystalmaker.com/support/updates/VersionData-CMM.xml"
regex(/\b(\d+\.\d+\.\d+)\b/)
strategy :xml do |xml, regex|
xml.get_elements("versiondata/versionlist/version").map { |item| item.attributes["number"][regex, 1] }
strategy :xml do |xml|
xml.get_elements("//version").map { |item| item.attributes["number"] }
end
end

Expand Down

0 comments on commit 1fda0a6

Please sign in to comment.