Skip to content

Commit

Permalink
bugfix(events): Removed offending characters from events title (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpresles authored Sep 20, 2023
1 parent d5c730f commit 3a57332
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/fetch-events/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,12 @@ function buildEventPages(events) {
`${isoDate.substring(0, 10)}.md`
);

// remove /!\ character from event title
const filteredName = name.replaceAll('/!\\', '').trim();

const fileTemplate = [
"---",
`title: "${name}"`,
`title: "${filteredName}"`,
`description: "Évènement du ${date}"`,
`date: ${isoDate}`,
"author: meetup",
Expand Down

0 comments on commit 3a57332

Please sign in to comment.