Skip to content

Commit

Permalink
changed version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallet committed Jul 2, 2021
1 parent fb83023 commit e269ef0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions NHLGames.Updater/Utilities/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
Public Class AssemblyInfo
Public Shared Function IsNewerVersionThanCurrent(name As String) As Boolean
Dim m As Match = Regex.Match(name, "v(\.)?((?:\d+\.)*\d+?)")
Dim version = m.Groups(m.Groups.Count - 1)

If m.Groups(2).Success Then
Dim availableVersion As Version = New Version(m.Groups(2).Value)
If version.Success Then
Dim availableVersion As Version = New Version(version.Value)
Dim currentVersion As Version
Try
currentVersion = New Version(FileVersionInfo.GetVersionInfo(Updater.NHLGamesFullPath).FileVersion)
Expand Down
4 changes: 2 additions & 2 deletions NHLGames/NHLGamesMetro.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e269ef0

Please sign in to comment.