Merge pull request #2 from cvan/patch-1

do not strip floating points when parsing timestamp (fixes #1)
This commit is contained in:
Mike B 2012-12-30 15:54:42 -08:00
commit cd715c44f5

View File

@ -77,7 +77,7 @@
// split string into groups and get total seconds for each group
var groups = string
.replace(/[^\w+-]+/g, '') // remove white space
.replace(/[^\.\w+-]+/g, '') // remove white space
.match(/[-+]?[0-9]*\.?[0-9]+\D/g); // match time groups (digit followed by time unit - i.e 5d 15m = 2 time groups)
if (groups !== null) {