Skip to content

Commit

Permalink
doc: extend type of match variable in recipe-ingredient-parser.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Toromyx committed Mar 12, 2024
1 parent e86d149 commit 1932645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/parser/recipe-ingredient-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ function extractQuantity(string: string): ExtractedQuantity | null {
);
rangeMatches = [...string.matchAll(rangeRegExp)];
}
let match = matches[0];
let match: RegExpExecArray | RegExpMatchArray = matches[0];
let quantity = numberParser.parse(match[0]);
if (fractionMatches.length) {
match = fractionMatches[0];
Expand Down

0 comments on commit 1932645

Please sign in to comment.