Skip to content
Snippets Groups Projects
Verified Commit 2f9d98c6 authored by Falk Rehse's avatar Falk Rehse
Browse files

Remove unnecessary replacements

parent 01447624
No related branches found
No related tags found
No related merge requests found
Pipeline #257372 passed with warnings
......@@ -82,8 +82,7 @@ const MensaplanPanel = (props: {definition: MensaPanelDefinition}) => {
.split(" | ")
.at(0) ?? "Name nicht bekannt")
.replace(" nach Wahl", "")
.replaceAll(/\(.*\)/g, "")
.replaceAll(/ *, */g, ", "),
.replaceAll(/\(.*\)/g, ""),
details: d.title.de
.split(" | ")
.slice(1, -1)
......@@ -105,8 +104,7 @@ const MensaplanPanel = (props: {definition: MensaPanelDefinition}) => {
.split(" | ")
.at(0) ?? "Name nicht bekannt")
.replace(" nach Wahl", "")
.replaceAll(/\(.*\)/g, "")
.replaceAll(/ *, */g, ", "),
.replaceAll(/\(.*\)/g, ""),
details: d.title.de
.split(" | ")
.slice(1, -1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment