Edit File by line
/home/barbar84/www/wp-inclu.../js/dist/vendor
File: moment.js
}
[500] Fix | Delete
[501] Fix | Delete
return function (mom) {
[502] Fix | Delete
var output = '',
[503] Fix | Delete
i;
[504] Fix | Delete
for (i = 0; i < length; i++) {
[505] Fix | Delete
output += isFunction(array[i])
[506] Fix | Delete
? array[i].call(mom, format)
[507] Fix | Delete
: array[i];
[508] Fix | Delete
}
[509] Fix | Delete
return output;
[510] Fix | Delete
};
[511] Fix | Delete
}
[512] Fix | Delete
[513] Fix | Delete
// format date using native date object
[514] Fix | Delete
function formatMoment(m, format) {
[515] Fix | Delete
if (!m.isValid()) {
[516] Fix | Delete
return m.localeData().invalidDate();
[517] Fix | Delete
}
[518] Fix | Delete
[519] Fix | Delete
format = expandFormat(format, m.localeData());
[520] Fix | Delete
formatFunctions[format] =
[521] Fix | Delete
formatFunctions[format] || makeFormatFunction(format);
[522] Fix | Delete
[523] Fix | Delete
return formatFunctions[format](m);
[524] Fix | Delete
}
[525] Fix | Delete
[526] Fix | Delete
function expandFormat(format, locale) {
[527] Fix | Delete
var i = 5;
[528] Fix | Delete
[529] Fix | Delete
function replaceLongDateFormatTokens(input) {
[530] Fix | Delete
return locale.longDateFormat(input) || input;
[531] Fix | Delete
}
[532] Fix | Delete
[533] Fix | Delete
localFormattingTokens.lastIndex = 0;
[534] Fix | Delete
while (i >= 0 && localFormattingTokens.test(format)) {
[535] Fix | Delete
format = format.replace(
[536] Fix | Delete
localFormattingTokens,
[537] Fix | Delete
replaceLongDateFormatTokens
[538] Fix | Delete
);
[539] Fix | Delete
localFormattingTokens.lastIndex = 0;
[540] Fix | Delete
i -= 1;
[541] Fix | Delete
}
[542] Fix | Delete
[543] Fix | Delete
return format;
[544] Fix | Delete
}
[545] Fix | Delete
[546] Fix | Delete
var defaultLongDateFormat = {
[547] Fix | Delete
LTS: 'h:mm:ss A',
[548] Fix | Delete
LT: 'h:mm A',
[549] Fix | Delete
L: 'MM/DD/YYYY',
[550] Fix | Delete
LL: 'MMMM D, YYYY',
[551] Fix | Delete
LLL: 'MMMM D, YYYY h:mm A',
[552] Fix | Delete
LLLL: 'dddd, MMMM D, YYYY h:mm A',
[553] Fix | Delete
};
[554] Fix | Delete
[555] Fix | Delete
function longDateFormat(key) {
[556] Fix | Delete
var format = this._longDateFormat[key],
[557] Fix | Delete
formatUpper = this._longDateFormat[key.toUpperCase()];
[558] Fix | Delete
[559] Fix | Delete
if (format || !formatUpper) {
[560] Fix | Delete
return format;
[561] Fix | Delete
}
[562] Fix | Delete
[563] Fix | Delete
this._longDateFormat[key] = formatUpper
[564] Fix | Delete
.match(formattingTokens)
[565] Fix | Delete
.map(function (tok) {
[566] Fix | Delete
if (
[567] Fix | Delete
tok === 'MMMM' ||
[568] Fix | Delete
tok === 'MM' ||
[569] Fix | Delete
tok === 'DD' ||
[570] Fix | Delete
tok === 'dddd'
[571] Fix | Delete
) {
[572] Fix | Delete
return tok.slice(1);
[573] Fix | Delete
}
[574] Fix | Delete
return tok;
[575] Fix | Delete
})
[576] Fix | Delete
.join('');
[577] Fix | Delete
[578] Fix | Delete
return this._longDateFormat[key];
[579] Fix | Delete
}
[580] Fix | Delete
[581] Fix | Delete
var defaultInvalidDate = 'Invalid date';
[582] Fix | Delete
[583] Fix | Delete
function invalidDate() {
[584] Fix | Delete
return this._invalidDate;
[585] Fix | Delete
}
[586] Fix | Delete
[587] Fix | Delete
var defaultOrdinal = '%d',
[588] Fix | Delete
defaultDayOfMonthOrdinalParse = /\d{1,2}/;
[589] Fix | Delete
[590] Fix | Delete
function ordinal(number) {
[591] Fix | Delete
return this._ordinal.replace('%d', number);
[592] Fix | Delete
}
[593] Fix | Delete
[594] Fix | Delete
var defaultRelativeTime = {
[595] Fix | Delete
future: 'in %s',
[596] Fix | Delete
past: '%s ago',
[597] Fix | Delete
s: 'a few seconds',
[598] Fix | Delete
ss: '%d seconds',
[599] Fix | Delete
m: 'a minute',
[600] Fix | Delete
mm: '%d minutes',
[601] Fix | Delete
h: 'an hour',
[602] Fix | Delete
hh: '%d hours',
[603] Fix | Delete
d: 'a day',
[604] Fix | Delete
dd: '%d days',
[605] Fix | Delete
w: 'a week',
[606] Fix | Delete
ww: '%d weeks',
[607] Fix | Delete
M: 'a month',
[608] Fix | Delete
MM: '%d months',
[609] Fix | Delete
y: 'a year',
[610] Fix | Delete
yy: '%d years',
[611] Fix | Delete
};
[612] Fix | Delete
[613] Fix | Delete
function relativeTime(number, withoutSuffix, string, isFuture) {
[614] Fix | Delete
var output = this._relativeTime[string];
[615] Fix | Delete
return isFunction(output)
[616] Fix | Delete
? output(number, withoutSuffix, string, isFuture)
[617] Fix | Delete
: output.replace(/%d/i, number);
[618] Fix | Delete
}
[619] Fix | Delete
[620] Fix | Delete
function pastFuture(diff, output) {
[621] Fix | Delete
var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
[622] Fix | Delete
return isFunction(format) ? format(output) : format.replace(/%s/i, output);
[623] Fix | Delete
}
[624] Fix | Delete
[625] Fix | Delete
var aliases = {};
[626] Fix | Delete
[627] Fix | Delete
function addUnitAlias(unit, shorthand) {
[628] Fix | Delete
var lowerCase = unit.toLowerCase();
[629] Fix | Delete
aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
[630] Fix | Delete
}
[631] Fix | Delete
[632] Fix | Delete
function normalizeUnits(units) {
[633] Fix | Delete
return typeof units === 'string'
[634] Fix | Delete
? aliases[units] || aliases[units.toLowerCase()]
[635] Fix | Delete
: undefined;
[636] Fix | Delete
}
[637] Fix | Delete
[638] Fix | Delete
function normalizeObjectUnits(inputObject) {
[639] Fix | Delete
var normalizedInput = {},
[640] Fix | Delete
normalizedProp,
[641] Fix | Delete
prop;
[642] Fix | Delete
[643] Fix | Delete
for (prop in inputObject) {
[644] Fix | Delete
if (hasOwnProp(inputObject, prop)) {
[645] Fix | Delete
normalizedProp = normalizeUnits(prop);
[646] Fix | Delete
if (normalizedProp) {
[647] Fix | Delete
normalizedInput[normalizedProp] = inputObject[prop];
[648] Fix | Delete
}
[649] Fix | Delete
}
[650] Fix | Delete
}
[651] Fix | Delete
[652] Fix | Delete
return normalizedInput;
[653] Fix | Delete
}
[654] Fix | Delete
[655] Fix | Delete
var priorities = {};
[656] Fix | Delete
[657] Fix | Delete
function addUnitPriority(unit, priority) {
[658] Fix | Delete
priorities[unit] = priority;
[659] Fix | Delete
}
[660] Fix | Delete
[661] Fix | Delete
function getPrioritizedUnits(unitsObj) {
[662] Fix | Delete
var units = [],
[663] Fix | Delete
u;
[664] Fix | Delete
for (u in unitsObj) {
[665] Fix | Delete
if (hasOwnProp(unitsObj, u)) {
[666] Fix | Delete
units.push({ unit: u, priority: priorities[u] });
[667] Fix | Delete
}
[668] Fix | Delete
}
[669] Fix | Delete
units.sort(function (a, b) {
[670] Fix | Delete
return a.priority - b.priority;
[671] Fix | Delete
});
[672] Fix | Delete
return units;
[673] Fix | Delete
}
[674] Fix | Delete
[675] Fix | Delete
function isLeapYear(year) {
[676] Fix | Delete
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
[677] Fix | Delete
}
[678] Fix | Delete
[679] Fix | Delete
function absFloor(number) {
[680] Fix | Delete
if (number < 0) {
[681] Fix | Delete
// -0 -> 0
[682] Fix | Delete
return Math.ceil(number) || 0;
[683] Fix | Delete
} else {
[684] Fix | Delete
return Math.floor(number);
[685] Fix | Delete
}
[686] Fix | Delete
}
[687] Fix | Delete
[688] Fix | Delete
function toInt(argumentForCoercion) {
[689] Fix | Delete
var coercedNumber = +argumentForCoercion,
[690] Fix | Delete
value = 0;
[691] Fix | Delete
[692] Fix | Delete
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
[693] Fix | Delete
value = absFloor(coercedNumber);
[694] Fix | Delete
}
[695] Fix | Delete
[696] Fix | Delete
return value;
[697] Fix | Delete
}
[698] Fix | Delete
[699] Fix | Delete
function makeGetSet(unit, keepTime) {
[700] Fix | Delete
return function (value) {
[701] Fix | Delete
if (value != null) {
[702] Fix | Delete
set$1(this, unit, value);
[703] Fix | Delete
hooks.updateOffset(this, keepTime);
[704] Fix | Delete
return this;
[705] Fix | Delete
} else {
[706] Fix | Delete
return get(this, unit);
[707] Fix | Delete
}
[708] Fix | Delete
};
[709] Fix | Delete
}
[710] Fix | Delete
[711] Fix | Delete
function get(mom, unit) {
[712] Fix | Delete
return mom.isValid()
[713] Fix | Delete
? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
[714] Fix | Delete
: NaN;
[715] Fix | Delete
}
[716] Fix | Delete
[717] Fix | Delete
function set$1(mom, unit, value) {
[718] Fix | Delete
if (mom.isValid() && !isNaN(value)) {
[719] Fix | Delete
if (
[720] Fix | Delete
unit === 'FullYear' &&
[721] Fix | Delete
isLeapYear(mom.year()) &&
[722] Fix | Delete
mom.month() === 1 &&
[723] Fix | Delete
mom.date() === 29
[724] Fix | Delete
) {
[725] Fix | Delete
value = toInt(value);
[726] Fix | Delete
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
[727] Fix | Delete
value,
[728] Fix | Delete
mom.month(),
[729] Fix | Delete
daysInMonth(value, mom.month())
[730] Fix | Delete
);
[731] Fix | Delete
} else {
[732] Fix | Delete
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
[733] Fix | Delete
}
[734] Fix | Delete
}
[735] Fix | Delete
}
[736] Fix | Delete
[737] Fix | Delete
// MOMENTS
[738] Fix | Delete
[739] Fix | Delete
function stringGet(units) {
[740] Fix | Delete
units = normalizeUnits(units);
[741] Fix | Delete
if (isFunction(this[units])) {
[742] Fix | Delete
return this[units]();
[743] Fix | Delete
}
[744] Fix | Delete
return this;
[745] Fix | Delete
}
[746] Fix | Delete
[747] Fix | Delete
function stringSet(units, value) {
[748] Fix | Delete
if (typeof units === 'object') {
[749] Fix | Delete
units = normalizeObjectUnits(units);
[750] Fix | Delete
var prioritized = getPrioritizedUnits(units),
[751] Fix | Delete
i;
[752] Fix | Delete
for (i = 0; i < prioritized.length; i++) {
[753] Fix | Delete
this[prioritized[i].unit](units[prioritized[i].unit]);
[754] Fix | Delete
}
[755] Fix | Delete
} else {
[756] Fix | Delete
units = normalizeUnits(units);
[757] Fix | Delete
if (isFunction(this[units])) {
[758] Fix | Delete
return this[units](value);
[759] Fix | Delete
}
[760] Fix | Delete
}
[761] Fix | Delete
return this;
[762] Fix | Delete
}
[763] Fix | Delete
[764] Fix | Delete
var match1 = /\d/, // 0 - 9
[765] Fix | Delete
match2 = /\d\d/, // 00 - 99
[766] Fix | Delete
match3 = /\d{3}/, // 000 - 999
[767] Fix | Delete
match4 = /\d{4}/, // 0000 - 9999
[768] Fix | Delete
match6 = /[+-]?\d{6}/, // -999999 - 999999
[769] Fix | Delete
match1to2 = /\d\d?/, // 0 - 99
[770] Fix | Delete
match3to4 = /\d\d\d\d?/, // 999 - 9999
[771] Fix | Delete
match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
[772] Fix | Delete
match1to3 = /\d{1,3}/, // 0 - 999
[773] Fix | Delete
match1to4 = /\d{1,4}/, // 0 - 9999
[774] Fix | Delete
match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
[775] Fix | Delete
matchUnsigned = /\d+/, // 0 - inf
[776] Fix | Delete
matchSigned = /[+-]?\d+/, // -inf - inf
[777] Fix | Delete
matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
[778] Fix | Delete
matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
[779] Fix | Delete
matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
[780] Fix | Delete
// any word (or two) characters or numbers including two/three word month in arabic.
[781] Fix | Delete
// includes scottish gaelic two word and hyphenated months
[782] Fix | Delete
matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
[783] Fix | Delete
regexes;
[784] Fix | Delete
[785] Fix | Delete
regexes = {};
[786] Fix | Delete
[787] Fix | Delete
function addRegexToken(token, regex, strictRegex) {
[788] Fix | Delete
regexes[token] = isFunction(regex)
[789] Fix | Delete
? regex
[790] Fix | Delete
: function (isStrict, localeData) {
[791] Fix | Delete
return isStrict && strictRegex ? strictRegex : regex;
[792] Fix | Delete
};
[793] Fix | Delete
}
[794] Fix | Delete
[795] Fix | Delete
function getParseRegexForToken(token, config) {
[796] Fix | Delete
if (!hasOwnProp(regexes, token)) {
[797] Fix | Delete
return new RegExp(unescapeFormat(token));
[798] Fix | Delete
}
[799] Fix | Delete
[800] Fix | Delete
return regexes[token](config._strict, config._locale);
[801] Fix | Delete
}
[802] Fix | Delete
[803] Fix | Delete
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
[804] Fix | Delete
function unescapeFormat(s) {
[805] Fix | Delete
return regexEscape(
[806] Fix | Delete
s
[807] Fix | Delete
.replace('\\', '')
[808] Fix | Delete
.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
[809] Fix | Delete
matched,
[810] Fix | Delete
p1,
[811] Fix | Delete
p2,
[812] Fix | Delete
p3,
[813] Fix | Delete
p4
[814] Fix | Delete
) {
[815] Fix | Delete
return p1 || p2 || p3 || p4;
[816] Fix | Delete
})
[817] Fix | Delete
);
[818] Fix | Delete
}
[819] Fix | Delete
[820] Fix | Delete
function regexEscape(s) {
[821] Fix | Delete
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
[822] Fix | Delete
}
[823] Fix | Delete
[824] Fix | Delete
var tokens = {};
[825] Fix | Delete
[826] Fix | Delete
function addParseToken(token, callback) {
[827] Fix | Delete
var i,
[828] Fix | Delete
func = callback;
[829] Fix | Delete
if (typeof token === 'string') {
[830] Fix | Delete
token = [token];
[831] Fix | Delete
}
[832] Fix | Delete
if (isNumber(callback)) {
[833] Fix | Delete
func = function (input, array) {
[834] Fix | Delete
array[callback] = toInt(input);
[835] Fix | Delete
};
[836] Fix | Delete
}
[837] Fix | Delete
for (i = 0; i < token.length; i++) {
[838] Fix | Delete
tokens[token[i]] = func;
[839] Fix | Delete
}
[840] Fix | Delete
}
[841] Fix | Delete
[842] Fix | Delete
function addWeekParseToken(token, callback) {
[843] Fix | Delete
addParseToken(token, function (input, array, config, token) {
[844] Fix | Delete
config._w = config._w || {};
[845] Fix | Delete
callback(input, config._w, config, token);
[846] Fix | Delete
});
[847] Fix | Delete
}
[848] Fix | Delete
[849] Fix | Delete
function addTimeToArrayFromToken(token, input, config) {
[850] Fix | Delete
if (input != null && hasOwnProp(tokens, token)) {
[851] Fix | Delete
tokens[token](input, config._a, config, token);
[852] Fix | Delete
}
[853] Fix | Delete
}
[854] Fix | Delete
[855] Fix | Delete
var YEAR = 0,
[856] Fix | Delete
MONTH = 1,
[857] Fix | Delete
DATE = 2,
[858] Fix | Delete
HOUR = 3,
[859] Fix | Delete
MINUTE = 4,
[860] Fix | Delete
SECOND = 5,
[861] Fix | Delete
MILLISECOND = 6,
[862] Fix | Delete
WEEK = 7,
[863] Fix | Delete
WEEKDAY = 8;
[864] Fix | Delete
[865] Fix | Delete
function mod(n, x) {
[866] Fix | Delete
return ((n % x) + x) % x;
[867] Fix | Delete
}
[868] Fix | Delete
[869] Fix | Delete
var indexOf;
[870] Fix | Delete
[871] Fix | Delete
if (Array.prototype.indexOf) {
[872] Fix | Delete
indexOf = Array.prototype.indexOf;
[873] Fix | Delete
} else {
[874] Fix | Delete
indexOf = function (o) {
[875] Fix | Delete
// I know
[876] Fix | Delete
var i;
[877] Fix | Delete
for (i = 0; i < this.length; ++i) {
[878] Fix | Delete
if (this[i] === o) {
[879] Fix | Delete
return i;
[880] Fix | Delete
}
[881] Fix | Delete
}
[882] Fix | Delete
return -1;
[883] Fix | Delete
};
[884] Fix | Delete
}
[885] Fix | Delete
[886] Fix | Delete
function daysInMonth(year, month) {
[887] Fix | Delete
if (isNaN(year) || isNaN(month)) {
[888] Fix | Delete
return NaN;
[889] Fix | Delete
}
[890] Fix | Delete
var modMonth = mod(month, 12);
[891] Fix | Delete
year += (month - modMonth) / 12;
[892] Fix | Delete
return modMonth === 1
[893] Fix | Delete
? isLeapYear(year)
[894] Fix | Delete
? 29
[895] Fix | Delete
: 28
[896] Fix | Delete
: 31 - ((modMonth % 7) % 2);
[897] Fix | Delete
}
[898] Fix | Delete
[899] Fix | Delete
// FORMATTING
[900] Fix | Delete
[901] Fix | Delete
addFormatToken('M', ['MM', 2], 'Mo', function () {
[902] Fix | Delete
return this.month() + 1;
[903] Fix | Delete
});
[904] Fix | Delete
[905] Fix | Delete
addFormatToken('MMM', 0, 0, function (format) {
[906] Fix | Delete
return this.localeData().monthsShort(this, format);
[907] Fix | Delete
});
[908] Fix | Delete
[909] Fix | Delete
addFormatToken('MMMM', 0, 0, function (format) {
[910] Fix | Delete
return this.localeData().months(this, format);
[911] Fix | Delete
});
[912] Fix | Delete
[913] Fix | Delete
// ALIASES
[914] Fix | Delete
[915] Fix | Delete
addUnitAlias('month', 'M');
[916] Fix | Delete
[917] Fix | Delete
// PRIORITY
[918] Fix | Delete
[919] Fix | Delete
addUnitPriority('month', 8);
[920] Fix | Delete
[921] Fix | Delete
// PARSING
[922] Fix | Delete
[923] Fix | Delete
addRegexToken('M', match1to2);
[924] Fix | Delete
addRegexToken('MM', match1to2, match2);
[925] Fix | Delete
addRegexToken('MMM', function (isStrict, locale) {
[926] Fix | Delete
return locale.monthsShortRegex(isStrict);
[927] Fix | Delete
});
[928] Fix | Delete
addRegexToken('MMMM', function (isStrict, locale) {
[929] Fix | Delete
return locale.monthsRegex(isStrict);
[930] Fix | Delete
});
[931] Fix | Delete
[932] Fix | Delete
addParseToken(['M', 'MM'], function (input, array) {
[933] Fix | Delete
array[MONTH] = toInt(input) - 1;
[934] Fix | Delete
});
[935] Fix | Delete
[936] Fix | Delete
addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
[937] Fix | Delete
var month = config._locale.monthsParse(input, token, config._strict);
[938] Fix | Delete
// if we didn't find a month name, mark the date as invalid.
[939] Fix | Delete
if (month != null) {
[940] Fix | Delete
array[MONTH] = month;
[941] Fix | Delete
} else {
[942] Fix | Delete
getParsingFlags(config).invalidMonth = input;
[943] Fix | Delete
}
[944] Fix | Delete
});
[945] Fix | Delete
[946] Fix | Delete
// LOCALES
[947] Fix | Delete
[948] Fix | Delete
var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
[949] Fix | Delete
'_'
[950] Fix | Delete
),
[951] Fix | Delete
defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
[952] Fix | Delete
'_'
[953] Fix | Delete
),
[954] Fix | Delete
MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
[955] Fix | Delete
defaultMonthsShortRegex = matchWord,
[956] Fix | Delete
defaultMonthsRegex = matchWord;
[957] Fix | Delete
[958] Fix | Delete
function localeMonths(m, format) {
[959] Fix | Delete
if (!m) {
[960] Fix | Delete
return isArray(this._months)
[961] Fix | Delete
? this._months
[962] Fix | Delete
: this._months['standalone'];
[963] Fix | Delete
}
[964] Fix | Delete
return isArray(this._months)
[965] Fix | Delete
? this._months[m.month()]
[966] Fix | Delete
: this._months[
[967] Fix | Delete
(this._months.isFormat || MONTHS_IN_FORMAT).test(format)
[968] Fix | Delete
? 'format'
[969] Fix | Delete
: 'standalone'
[970] Fix | Delete
][m.month()];
[971] Fix | Delete
}
[972] Fix | Delete
[973] Fix | Delete
function localeMonthsShort(m, format) {
[974] Fix | Delete
if (!m) {
[975] Fix | Delete
return isArray(this._monthsShort)
[976] Fix | Delete
? this._monthsShort
[977] Fix | Delete
: this._monthsShort['standalone'];
[978] Fix | Delete
}
[979] Fix | Delete
return isArray(this._monthsShort)
[980] Fix | Delete
? this._monthsShort[m.month()]
[981] Fix | Delete
: this._monthsShort[
[982] Fix | Delete
MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
[983] Fix | Delete
][m.month()];
[984] Fix | Delete
}
[985] Fix | Delete
[986] Fix | Delete
function handleStrictParse(monthName, format, strict) {
[987] Fix | Delete
var i,
[988] Fix | Delete
ii,
[989] Fix | Delete
mom,
[990] Fix | Delete
llc = monthName.toLocaleLowerCase();
[991] Fix | Delete
if (!this._monthsParse) {
[992] Fix | Delete
// this is not used
[993] Fix | Delete
this._monthsParse = [];
[994] Fix | Delete
this._longMonthsParse = [];
[995] Fix | Delete
this._shortMonthsParse = [];
[996] Fix | Delete
for (i = 0; i < 12; ++i) {
[997] Fix | Delete
mom = createUTC([2000, i]);
[998] Fix | Delete
this._shortMonthsParse[i] = this.monthsShort(
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function