adamgibbons / ics

iCalendar (ics) file generator for node.js
ISC License
715 stars 152 forks source link

Allow `organiser` to contain comma, ensure that new lines in values don't break output, and various other tweaks #252

Closed tjenkinson closed 9 months ago

tjenkinson commented 1 year ago

Thanks for this great library!

We had a bug where we were providing an organiser where the name included a ,, and the fix was to wrap the name in quotes. Essentially take the quoted-string option for param-value in the spec

So the I decided to make the same change to the other param-value's so that they don't have the same issue.

And then I added some logic to encode new lines to\n in a lot more places because otherwise it's possible for user input containing new lines to break things

And as I was going through I spotted a few other things so here's a list of all the tweaks/fixes:

tjenkinson commented 1 year ago

Just realised I still need to update the d.ts file

adamgibbons commented 9 months ago

@tjenkinson thanks for all this great work - I checked out your branch and all tests were passing, but when I merged into main tests were breaking. Would love to merge this in if we can straighten that out.

tjenkinson commented 9 months ago

@adamgibbons will have a look now

tjenkinson commented 9 months ago

I'm on node v18.18.0, npm 9.8.1 and npm ci && npm t works fine or me on feee468da713c92603eb4cd0faf03c0d9b7b5df0 🤔

What errors are you seeing?

adamgibbons commented 9 months ago

@tjenkinson would you reopen this PR against master when you have a chance? 🙏

tjenkinson commented 9 months ago

Done in https://github.com/adamgibbons/ics/pull/261