decord/source/module_3284.js
2026-07-24 07:16:23 +00:00

24 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Module ID: 3284
// Function ID: 26017
// Dependencies: [1932, 1931]
// Module 3284
import result from "result";
import result from "result";
obj = { ordinalNumber: result.default(obj), era: result.default({ matchPatterns: obj1, defaultMatchWidth: "wide", parsePatterns: { narrow: items, any: items1 }, defaultParseWidth: "any" }), quarter: result.default(obj2), month: result.default({ matchPatterns: obj4, defaultMatchWidth: "wide", parsePatterns: { any: items3 }, defaultParseWidth: "any" }), day: result.default({ matchPatterns: obj5, defaultMatchWidth: "wide", parsePatterns: { any: items4 }, defaultParseWidth: "any" }), dayPeriod: result.default({ matchPatterns: obj6, defaultMatchWidth: "any", parsePatterns: { any: obj7 }, defaultParseWidth: "any" }) };
obj = {
matchPattern: /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,
parsePattern: /\d+/i,
valueCallback(replaced) {
return parseInt(replaced, 10);
}
};
items = [/^B/i, /^A/i];
items1 = [/^(紀元前)/i, /^(西暦|紀元後)/i];
const items2 = [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i];
items3 = [/^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/];
items4 = [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/];
export default obj;
export default exports.default;