mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
Fix various category titles
This commit is contained in:
@@ -17,7 +17,7 @@ const parseBaseInfoFromMatch = m => {
|
||||
}
|
||||
|
||||
const parseInfo = e => {
|
||||
const titleMatch = e.title.match(/([\w\s]+?)?\s?#(\d+) - (.*)/)
|
||||
const titleMatch = e.title.match(/([\w\s]+?)?\s?#(\d+) - (.*)/) || [,,,e.title]
|
||||
const { categoryName, number, titlePlain } = parseBaseInfoFromMatch(titleMatch)
|
||||
const blockMatch = e.contentSnippet.match(/Blockzeit\s(\d+)/)
|
||||
const block = blockMatch ? parseInt(blockMatch[1]) : null
|
||||
|
||||
Reference in New Issue
Block a user