Honour NRT compliance

This commit is contained in:
Oliver Booth 2021-03-10 11:33:36 +00:00
parent a1af553c93
commit 98aaf67d4b
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace X10D
/// <param name="input">The input string.</param>
/// <param name="provider">The format provider.</param>
/// <returns>Returns an instance of <see cref="TimeSpan" />.</returns>
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)? *" +