Skip to content

Commit

Permalink
fix github url regex
Browse files Browse the repository at this point in the history
  • Loading branch information
stephtr committed Apr 19, 2020
1 parent fac572e commit 03ad5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TrayIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private async void CheckUpdates(bool showErrors = true)
{
var data = await wc.DownloadStringTaskAsync(updateUrl);
var tagMatch = new Regex("\"tag_name\"[^\"]+\"([^\"]+)\"").Match(data);
var urlMatch = new Regex("\"html_url\"[^\"]+\"(https://github.com/[^\"]+)\"").Match(data);
var urlMatch = new Regex("\"html_url\"[^\"]+\"(https://github\\.com/[^\"]+)\"").Match(data);
var newVersion = new Version(tagMatch.Groups[1].Value);
var releaseUrl = urlMatch.Groups[1].Value;
if (currentVersion < newVersion)
Expand Down

0 comments on commit 03ad5cc

Please sign in to comment.