Skip to content

Commit

Permalink
rev (remove diet descriptors)
Browse files Browse the repository at this point in the history
  • Loading branch information
SantriptaSharma committed Oct 14, 2023
1 parent 09b6207 commit 25d4b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/parse-dining.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function ParseXlsx(path: string, year: number): Promise<MessMenu[]>

if (name.length > 0 && !exclude.includes(name))
{
const split = name.split(",").flatMap(s => s.split("/")).map(s => s.trim()).filter(s => s.length > 0 && !exclude.includes(name)).map(item => ({
const split = name.replace(/\(.*?\)/g, "").split(",").flatMap(s => s.split("/")).map(s => s.trim()).filter(s => s.length > 0 && !exclude.includes(name)).map(item => ({
category: row[1] as string,
name: item,
meal: key
Expand Down

0 comments on commit 25d4b3e

Please sign in to comment.