rianjs / ical.net

ical.NET - an open source iCal library for .NET
MIT License
782 stars 230 forks source link

RecurrencePattern is not parsed correctly #502

Open pt-icg opened 4 years ago

pt-icg commented 4 years ago

There's a problem for FREQ not in front position.

RecurrencePattern pattern1 = new RecurrencePattern("INTERVAL=2;FREQ=WEEKLY;BYDAY=TU"); RecurrencePattern pattern2 = new RecurrencePattern("FREQ=WEEKLY;INTERVAL=2;BYDAY=TU") pattern1 .ToString(); //FREQ=WEEKLY;BYDAY=TU pattern2 .ToString(); //FREQ=FREQ=WEEKLY;INTERVAL=2;BYDAY=TU