Merge branch 'master' of github.com:mike182uk/timestring
Conflicts: timestring.js
This commit is contained in:
commit
1945c9dda0
@ -79,7 +79,7 @@
|
|||||||
// split string into groups and get total seconds for each group
|
// split string into groups and get total seconds for each group
|
||||||
var groups = string
|
var groups = string
|
||||||
.toLowerCase() // convert words to lower case
|
.toLowerCase() // convert words to lower case
|
||||||
.replace(/[^\w+-]+/g, '') // remove white space
|
.replace(/[^\.\w+-]+/g, '') // remove white space
|
||||||
.match(/[-+]?[0-9]+[a-z]+/g); // match time groups (digit followed by time unit - i.e 5d 15m = 2 time groups)
|
.match(/[-+]?[0-9]+[a-z]+/g); // match time groups (digit followed by time unit - i.e 5d 15m = 2 time groups)
|
||||||
|
|
||||||
if (groups !== null) {
|
if (groups !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user