From 627de675dc1e2ee05c8cdee4c87e963ce4f2a62e Mon Sep 17 00:00:00 2001 From: Randy Merrill Date: Fri, 21 Jan 2011 09:32:18 -0800 Subject: [PATCH] Excaping the `-` char in the regex. --- jquery.timeago.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.timeago.js b/jquery.timeago.js index 9e05568..8035f19 100644 --- a/jquery.timeago.js +++ b/jquery.timeago.js @@ -87,7 +87,7 @@ s = s.replace(/\.\d\d\d+/,""); // remove milliseconds s = s.replace(/-/,"/").replace(/-/,"/"); s = s.replace(/T/," ").replace(/Z/," UTC"); - s = s.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400 + s = s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400 return new Date(s); }, datetime: function(elem) {