Skip to content

Commit

Permalink
fix: removal of unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
scolastico committed Apr 25, 2024
1 parent 1898a5b commit f17337a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ms-ics-fix/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ async function doIcsFix(url) {
`BEGIN:VCALENDAR`,
`VERSION:2.0`,
`PRODID:-//hacksw/handcal//NONSGML v1.0//EN`,
`X-WR-CALNAME:${
`X-WR-CALNAME:${(
(
raw.split('\n').find(l => l.startsWith('X-WR-CALNAME:')
) || ':Missing Calendar Name!').split(':')[1]
}`,
).replaceAll('\n', ' ')}`,
events.join('\n'),
`END:VCALENDAR`
].join('\n').replaceAll('\n', '\r\n')
Expand Down

0 comments on commit f17337a

Please sign in to comment.