From 4dfb2651b5fba2ab5fcd699f377e478bb871f2e0 Mon Sep 17 00:00:00 2001 From: "Oliver, Jonathan" Date: Thu, 29 Dec 2011 05:16:01 -0700 Subject: [PATCH] Removed unnecessary information from regex. --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.js b/moment.js index fa322a71e..9b3591f8c 100644 --- a/moment.js +++ b/moment.js @@ -13,7 +13,7 @@ hasModule = (typeof module !== 'undefined'), paramsToParse = 'months|monthsShort|monthsParse|weekdays|weekdaysShort|longDateFormat|calendar|relativeTime|ordinal|meridiem'.split('|'), i, - jsonRegex = /\/?Date\((\d+)((?:\-|\+)\d+)?\)\/?/i, + jsonRegex = /^\/?Date\((\d+)/i, charactersToReplace = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|dddd?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|zz?|ZZ?|LT|LL?L?L?)/g, nonuppercaseLetters = /[^A-Z]/g, timezoneRegex = /\([A-Za-z ]+\)|:[0-9]{2} [A-Z]{3} /g, -- 2.47.2