Skip to content

Commit

Permalink
update (parser): do not parse away diet descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
SantriptaSharma committed Oct 14, 2023
1 parent 652d2c7 commit 09b6207
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(s => s.split("(")[0].trim()).map(item => ({
const split = name.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 09b6207

Please sign in to comment.