mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 03:45:41 +00:00
Honour NRT compliance
This commit is contained in:
parent
a1af553c93
commit
98aaf67d4b
@ -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)? *" +
|
||||
|
Loading…
Reference in New Issue
Block a user