37 lines
1.6 KiB
JavaScript
37 lines
1.6 KiB
JavaScript
// Module ID: 3431
|
|
// Function ID: 3432
|
|
// Dependencies: [1985, 1986]
|
|
|
|
// Module 3431
|
|
import buildMatchFn from "buildMatchFn";
|
|
import buildMatchPatternFn from "buildMatchPatternFn";
|
|
|
|
if (!buildMatchFn) {
|
|
let obj = { default: null };
|
|
obj[0] = buildMatchFn;
|
|
} else {
|
|
obj = buildMatchFn;
|
|
}
|
|
if (!buildMatchPatternFn) {
|
|
obj = { default: null };
|
|
obj[0] = buildMatchPatternFn;
|
|
let obj2 = obj;
|
|
} else {
|
|
obj2 = buildMatchPatternFn;
|
|
}
|
|
obj2 = {
|
|
matchPattern: /^(\d+)(ième|ère|ème|er|e)?/i,
|
|
parsePattern: /\d+/i,
|
|
valueCallback(joined) {
|
|
return parseInt(joined);
|
|
}
|
|
};
|
|
const items = [/^av/i, /^ap/i];
|
|
const items1 = [/1/i, /2/i, /3/i, /4/i];
|
|
const items2 = [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i];
|
|
const items3 = [/^ja/i, /^f/i, /^mar/i, /^av/i, /^ma/i, /^juin/i, /^juil/i, /^ao/i, /^s/i, /^o/i, /^n/i, /^d/i];
|
|
const items4 = [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i];
|
|
const items5 = [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i];
|
|
|
|
export default { ordinalNumber: obj2.default(obj2), era: obj.default({ matchPatterns: obj3, defaultMatchWidth: "wide", parsePatterns: { any: items }, defaultParseWidth: "any" }), quarter: obj.default(obj4), month: obj.default({ matchPatterns: obj6, defaultMatchWidth: "wide", parsePatterns: { narrow: items2, any: items3 }, defaultParseWidth: "any" }), day: obj.default({ matchPatterns: obj7, defaultMatchWidth: "wide", parsePatterns: { narrow: items4, any: items5 }, defaultParseWidth: "any" }), dayPeriod: obj.default({ matchPatterns: obj8, defaultMatchWidth: "any", parsePatterns: { any: obj9 }, defaultParseWidth: "any" }) };
|
|
export default exports.default;
|