MCPcopy
hub / github.com/DIYgod/RSSHub / UnitPattern

Interface UnitPattern

lib/utils/parse-date.ts:30–39  ·  view source on GitHub ↗

* Defines a pattern for extracting time units from a string.

Source from the content-addressed store, hash-verified

28 * Defines a pattern for extracting time units from a string.
29 */
30interface UnitPattern {
31 /**
32 * The unit of time manipulation (e.g., 'days', 'hours').
33 */
34 unit: ManipulateType;
35 /**
36 * Regular expression to match value and unit in the input string.
37 */
38 regExp: RegExp;
39}
40
41// === Pre-compiled Regular Expressions ===
42

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected