From 98aaf67d4bd9c50a13defc5e699e6eb46d13bfb9 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 10 Mar 2021 11:33:36 +0000 Subject: [PATCH] Honour NRT compliance --- X10D/src/TimeSpanParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X10D/src/TimeSpanParser.cs b/X10D/src/TimeSpanParser.cs index edfbb78..e327442 100644 --- a/X10D/src/TimeSpanParser.cs +++ b/X10D/src/TimeSpanParser.cs @@ -16,7 +16,7 @@ namespace X10D /// The input string. /// The format provider. /// Returns an instance of . - public static TimeSpan Parse(string input, IFormatProvider provider = null) + public static TimeSpan Parse(string input, IFormatProvider? provider = null) { const string realNumberPattern = @"([0-9]*\.[0-9]+|[0-9]+)"; var pattern = $"^(?:{realNumberPattern} *w)? *" +