Closed VictorioBerra closed 8 years ago
I will remove the "g" flag. As for strings without the "s" at the end: what about ms, ns, μs, s? This makes it very difficult to check in the code.
ms, ns, μs, s are ok. I mean only strings in long form:
parse('ms') // ok, equal to 1 ms
parse('s') // ok, equal to 1 s
parse('second') // ok, equal to 1 s
parse('seconds') // this should not be equal to 1 s, because it will be very strange
I don't see the value in this change. BTW you can do parse['ms']
, parse['second']
if you know you are receiving that kind of input
closes #2 closes #1