1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-23 01:28:48 +00:00

Honour NRT compliance

This commit is contained in:
Oliver Booth 2021-03-10 11:33:36 +00:00
parent a1af553c93
commit 98aaf67d4b

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)? *" +