diff --git a/frontend/composables/use-group-recipe-actions.ts b/frontend/composables/use-group-recipe-actions.ts index d2b37a803..f5cffc011 100644 --- a/frontend/composables/use-group-recipe-actions.ts +++ b/frontend/composables/use-group-recipe-actions.ts @@ -50,13 +50,13 @@ export const useGroupRecipeActions = function ( } async function parseRecipeActionUrl(url: string, recipe: Recipe, recipeScale: number): Promise { - const recipeServings = (recipe.recipeServings || 1) * recipeScale; - const recipeYieldQuantity = (recipe.recipeYieldQuantity || 1) * recipeScale; - /* eslint-disable no-template-curly-in-string */ const shareLinkRegex = /\$\{share-link-expires-seconds-[0-9]+\}/g; const group = (await api.groups.getOne(recipe.groupId || "")).data; + const recipeServings = (recipe.recipeServings || 1) * recipeScale; + const recipeYieldQuantity = (recipe.recipeYieldQuantity || 1) * recipeScale; + const shareLinkStringMatches = url.matchAll(shareLinkRegex); if (shareLinkStringMatches) {