1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 04:55:42 +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="input">The input string.</param>
/// <param name="provider">The format provider.</param> /// <param name="provider">The format provider.</param>
/// <returns>Returns an instance of <see cref="TimeSpan" />.</returns> /// <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]+)"; const string realNumberPattern = @"([0-9]*\.[0-9]+|[0-9]+)";
var pattern = $"^(?:{realNumberPattern} *w)? *" + var pattern = $"^(?:{realNumberPattern} *w)? *" +