mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
replaceAll needs node 15
This commit is contained in:
parent
9ce9a1aad9
commit
76992414c5
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue