From b6f9fa1439031819441e9dbf4fdea06bd442473f Mon Sep 17 00:00:00 2001 From: Joel Verhagen Date: Wed, 12 Feb 2020 13:51:48 -0800 Subject: [PATCH] Normalize cases where the decimal seconds are 0 and therefore excluded (#742) Progress on https://github.com/NuGet/NuGetGallery/issues/7741 --- src/NuGet.Jobs.RegistrationComparer/Normalizers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NuGet.Jobs.RegistrationComparer/Normalizers.cs b/src/NuGet.Jobs.RegistrationComparer/Normalizers.cs index 66fc72824..bd5fe8a0c 100644 --- a/src/NuGet.Jobs.RegistrationComparer/Normalizers.cs +++ b/src/NuGet.Jobs.RegistrationComparer/Normalizers.cs @@ -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"); }