MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / parseTextToRRule

Method parseTextToRRule

src/utils/TasksPluginParser.ts:543–553  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

541 }
542
543 private static parseTextToRRule(text: string): string | undefined {
544 try {
545 const options = RRule.parseText(text);
546 if (!options) {
547 return undefined;
548 }
549 return new RRule(options).toString().replace(/^RRULE:/u, "");
550 } catch {
551 return undefined;
552 }
553 }
554
555 private static parseSimpleRecurrence(text: string): string | undefined {
556 const normalized = text.trim().toLowerCase();

Callers 1

parseRecurrenceMethod · 0.95

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected