We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500ms is parsed as minutes, should use lookaheads:
private static readonly Regex timeSpanExpression = new Regex(@"((?'d'[0-9]+)\s?d(ay(s)?)?)?\s?" + @"((?'h'[0-9]+)\s?h(our(s)?)?)?\s?" + @"((?'m'[0-9]+)\s?m(?![is])(in(ute(s)?)?)?)?\s?" + @"((?'s'[0-9]+)\s?s(ec(ond(s)?)?)?)?\s?" + @"((?'f'[0-9]+)\s?(f(rac(tion(s)?)?)?)?|(ms)|(millisecond(s)?))?", RegexOptions.Compiled | RegexOptions.IgnoreCase);
The text was updated successfully, but these errors were encountered:
Switch to use: https://github.com/dotJEM/adv-parsers
Sorry, something went wrong.
No branches or pull requests
500ms is parsed as minutes, should use lookaheads:
The text was updated successfully, but these errors were encountered: