Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix Slack version getter
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Jul 7, 2023
1 parent ce5e1e5 commit a95b07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pareto Updater/Software/Slack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AppSlack: AppUpdater {

override func getLatestVersion(completion: @escaping (String) -> Void) {
let url = viaEdgeCache("https://slack.com/release-notes/mac")
let versionRegex = Regex("<h2>Slack ?([\\.\\d]+)</h2>")
let versionRegex = Regex("<h2.*?>Slack ?([\\.\\d]+)</h2>")
os_log("Requesting %{public}s", url)
AF.request(url).responseString(queue: Constants.httpQueue, completionHandler: { response in
if response.error == nil {
Expand Down

0 comments on commit a95b07e

Please sign in to comment.