From 6cf492334ced8323eaf6f47ece57023c23757ed8 Mon Sep 17 00:00:00 2001 From: Mike Barrett Date: Sun, 30 Dec 2012 23:42:39 +0000 Subject: [PATCH] convert words to lower case --- timestring.js | 1 + 1 file changed, 1 insertion(+) diff --git a/timestring.js b/timestring.js index 750a6ab..ea11302 100644 --- a/timestring.js +++ b/timestring.js @@ -75,6 +75,7 @@ // split string into groups and get total seconds for each group var groups = string + .toLowerCase() // convert words to lower case .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)