Simplify participants lookup

This commit is contained in:
Dennis Reimann
2023-09-28 08:35:35 +02:00
parent 950d413263
commit 7a6c55f192

View File

@@ -67,7 +67,7 @@ const parseEpisode = e => {
const duration = e['itunes:duration']
const enclosure = e.enclosure.__attr
const [, participantsString] =
firstLine.match(/\s-\s(?:(?:von\sund\s)?mit\s)([^.]*)/i) || []
firstLine.match(/(?:(?:von\sund\s)?mit\s)([^.]*)$/i) || []
const participants = participantsString
? participantsString
.replace(/(\s*,\s*|\s*und\s*|\s*&\s*)/gi, '%')