Skip to content

Commit

Permalink
properly deal with some version numbers sent by hearthstats (HearthSi…
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed Apr 11, 2015
1 parent 7c09213 commit 3cbffc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Hearthstone Deck Tracker/Utility/SerializableVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public static SerializableVersion ParseOrDefault(string verionString)
{
if(string.IsNullOrEmpty(verionString))
return Default;
if(verionString.Length == 1)
verionString += ".0";
Version version;
if(Version.TryParse(verionString.Replace("v", ""), out version))
return new SerializableVersion(version);
Expand Down

0 comments on commit 3cbffc8

Please sign in to comment.