]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Removed unnecessary information from regex. 119/head
authorOliver, Jonathan <joliver@localhost>
Thu, 29 Dec 2011 12:16:01 +0000 (05:16 -0700)
committerOliver, Jonathan <joliver@localhost>
Thu, 29 Dec 2011 12:16:01 +0000 (05:16 -0700)
moment.js

index fa322a71ea73fe08fe84a80773e5c923c0548368..9b3591f8c74ceb4500612c16c24cd92cd98ee424 100644 (file)
--- 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,