Skip to content

Commit

Permalink
fix: 🐛 adjust regex to fix regex error
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck authored and ManAnRuck committed May 8, 2024
1 parent 9f8eadc commit e58f7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cron-jobs/import-plenary-minutes/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getPlenaryMinutes = (plenaryMinutes: cheerio.Cheerio, period: number): Ple
plenaryMinutes.each((i, elem) => {
// Parse Title
const title = cheerio(elem).find('strong').text().trim();
const regex = /Plenarprotokoll der (?<meeting>\d{1,3}).*?dem (?<date>.*?)$/gi;
const regex = /protokoll der (?<meeting>\d{1,3}).*?dem (?<date>.*?)$/gi;
const match = regex.exec(title)!.groups as {
meeting: string;
date: string;
Expand Down

0 comments on commit e58f7eb

Please sign in to comment.