Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Normalize cases where the decimal seconds are 0 and therefore excluded (
Browse files Browse the repository at this point in the history
  • Loading branch information
joelverhagen committed Feb 12, 2020
1 parent ad869ee commit da5ed43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NuGet.Jobs.RegistrationComparer/Normalizers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private static string TrySetBaseUrl(string url, string currentBaseUrl, string ne
// Each iteration, the writer will come up with a different commit timestamp.
var commitTimestamp = (string)value;
if (commitTimestamp != null
&& Regex.IsMatch(commitTimestamp, @"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{1,}(Z|\+00:00)"))
&& Regex.IsMatch(commitTimestamp, @"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,})?(Z|\+00:00)"))
{
return DateTimeOffset.MinValue.ToString("o");
}
Expand Down

0 comments on commit da5ed43

Please sign in to comment.