From: Tim Wood Date: Mon, 11 Jun 2012 21:12:57 +0000 (-0700) Subject: Whitespace diff… X-Git-Tag: 1.7.0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19e15d62b77e5fb11cdf963f8051efdf20330e53;p=thirdparty%2Fmoment.git Whitespace diff… #296 --- diff --git a/moment.js b/moment.js index dbd2b2891..e8c88c5df 100644 --- a/moment.js +++ b/moment.js @@ -873,7 +873,7 @@ var output = this.clone(); // the following switch intentionally omits break keywords // to utilize falling through the cases. - switch (val.replace(/s$/, '')) { + switch (val.replace(/s$/, '')) { case 'year': output.month(0); /* falls through */ @@ -895,9 +895,9 @@ } return output; }, - + endOf: function (val) { - return this.startOf(val).add(val.replace(/s?$/, 's'), 1).subtract('ms', 1); + return this.startOf(val).add(val.replace(/s?$/, 's'), 1).subtract('ms', 1); }, sod: function () {