Skip to content

Commit

Permalink
Fix Squirrel#1283 (Spaces in filename cause ReleaseEntry Regex to fail)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbenard committed Oct 24, 2018
1 parent 714da0b commit d6b581e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Squirrel/ReleaseEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public Uri GetIconUrl(string packageDirectory)
return zp.IconUrl;
}

static readonly Regex entryRegex = new Regex(@"^([0-9a-fA-F]{40})\s+(\S+)\s+(\d+)[\r]*$");
static readonly Regex entryRegex = new Regex(@"^([0-9a-fA-F]{40})\s+(\S[\S ]*?)\s+(\d+)[\r]*$");
static readonly Regex commentRegex = new Regex(@"\s*#.*$");
static readonly Regex stagingRegex = new Regex(@"#\s+(\d{1,3})%$");
public static ReleaseEntry ParseReleaseEntry(string entry)
Expand Down

0 comments on commit d6b581e

Please sign in to comment.