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 */
}
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 () {