Skip to content

Commit

Permalink
update name regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Sep 20, 2024
1 parent c46b1e3 commit 82b1038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/components/ModuleDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ function getSemesterImage(semester: Semester) {
}
function getDozentName() {
const r = /(PD|Prof\.) Dr. (.* )?(.*)/.exec(props.modul.verantwortlicher)
if (r) return r[3]
const r = /((Prof|Dr|PD|TT-Prof|rer|nat|Dipl)\.?)+[ -](.* )([^ ]*)$/i.exec(props.modul.verantwortlicher)
if (r) return r[r.length - 1]
return props.modul.verantwortlicher
}
</script>

0 comments on commit 82b1038

Please sign in to comment.