forked from u01jmg3/ics-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle case of RRULE:COUNT=1 (any FREQ)
Outlook, as reported in u01jmg3#293, may in some cases reduce `COUNT` to `1`. Whilst not disallowed in the RFC5545 spec (or any of its errata to date), having a `COUNT` of `1` has no practical purpose that I can see. We currently only check we've reached the count-limit *after* we've generated the first few recurrences of an event and - more pressingly - *after* we've appended the first candidate to the array of generated recurrences. In this case `PHP_MAX_INT` could be replaced with some suitable default number, akin to the current `defaultSpan` property used to put a limit on UNTIL. But that's something for another PR.
- Loading branch information
Showing
2 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters