(text: string)
| 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(); |
no test coverage detected