replaceAll needs node 15

This commit is contained in:
lesion 2023-06-08 22:30:09 +02:00
parent 9ce9a1aad9
commit 76992414c5
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -83,7 +83,7 @@ const exportController = {
function unixFormat (timestamp, format='EEEE d MMMM HH:mm') {
return DateTime.fromSeconds(timestamp, opt).toFormat(format)
}
}
res.type('application/rss+xml; charset=UTF-8')
res.render('feed/rss.pug', { events, settings, unixFormat, title, link })
@ -109,7 +109,7 @@ const exportController = {
endInputType: 'utc',
title: `[${settings.title}] ${e.title}`,
description: htmlToText(e.description),
htmlContent: e.description.replaceAll("\n","<br>"),
htmlContent: e.description.replace(/\n/g,"<br>"),
location,
url: `${settings.baseurl}/event/${e.slug || e.id}`,
status: 'CONFIRMED',