use full-string match to speed up aspnet regex match by rvagg · Pull Request #2939 · moment/moment
Fixes: #2936 C# duration match was almost complete enough to match full-strings, just needed to allow for the extra digits in microseconds. Getting to put in ^ $ resolves the speed problem reported...
github.com