adamgibbons / ics

iCalendar (ics) file generator for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trigger is encoded twice

eliasborngaesser opened this issue · comments

Because the input is already encoded from the setTrigger function, the encodeNewLines function is called twice.
This leads to \n inside the value of the trigger

https://github.com/adamgibbons/ics/blob/ecc8cf54f84da92b3a0fe0fa049fc65cda4d1451/src/utils/set-alarm.js#L58C26-L58C26

@eliasborngaesser have you got an example? calling encodeNewLines twice shouldn't cause a problem 🤔

Ah I see it now will open a PR