Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generates invalid ICS files, no : in ORGANIZER field. #610

Closed
SwanX1 opened this issue Sep 11, 2024 · 2 comments
Closed

Generates invalid ICS files, no : in ORGANIZER field. #610

SwanX1 opened this issue Sep 11, 2024 · 2 comments

Comments

@SwanX1
Copy link

SwanX1 commented Sep 11, 2024

Simple reproduction:

const calendar = ical();
calendar.createEvent({
	start: new Date(2024, 0, 1),
	end: new Date(2024, 0, 2),
	summary: "Test Event",
	organizer: { name: "Some Guy" } // This is the problematic one
});
console.log(calendar.toString());

Output:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//sebbo.net//ical-generator//EN
BEGIN:VEVENT
UID:e8dfb7b2-fa21-41a8-8a1b-9c26a53c7ce7
SEQUENCE:0
DTSTAMP:20240911T092420Z
DTSTART:20231231T220000Z
DTEND:20240101T220000Z
SUMMARY:Test Event
ORGANIZER;CN="Some Guy"
END:VEVENT
END:VCALENDAR

ORGANIZER;CN="Some Guy" should actually be ORGANIZER;CN="Some Guy": or something like that (not sure)

@sebbo2002
Copy link
Owner

Thanks for this bugreport. It's fixed with version 8.0.1-develop.3 which you can install with npm i ical-generator@next.

github-actions bot pushed a commit that referenced this issue Oct 16, 2024
## [8.0.1](v8.0.0...v8.0.1) (2024-10-16)

### Bug Fixes

* **Event:** Add missing : for ORGANIZERs ([dca6352](dca6352)), closes [#610](#610)
* **Event:** Handle location.geo.lat|lon = null ([7e68f00](7e68f00)), closes [#618](#618)
@sebbo2002
Copy link
Owner

🎉 This issue has been resolved in version 8.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants