Skip to content

Commit

Permalink
Fixes formatting issue in reimanns api
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Mar 26, 2024
1 parent a09c03c commit b11c8ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rogue-thi-app/pages/api/reimanns.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export async function getReimannsPlan(version) {

let day = null
lines.forEach((content) => {
content = content.trim()
content = content.trim().replace(/^ /, '')
console.log(content)
const dayNameMatch = content.match(
/montag|dienstag|mittwoch|donnerstag|freitag|samstag|sonntag/iu
)
Expand Down

0 comments on commit b11c8ac

Please sign in to comment.