mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
feat: refactor recipe scaling (#4298)
This commit is contained in:
parent
1bd3d38dfc
commit
14dbd79c7f
5 changed files with 45 additions and 29 deletions
|
@ -39,7 +39,7 @@ function extractServingsFromFraction(fractionString: string): number | undefined
|
|||
|
||||
|
||||
|
||||
function findMatch(yieldString: string): [matchString: string, servings: number, isFraction: boolean] | null {
|
||||
export function findMatch(yieldString: string): [matchString: string, servings: number, isFraction: boolean] | null {
|
||||
if (!yieldString) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue