first commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export const fillRecipeTemplate = (
|
||||
template: string,
|
||||
vars: { name?: string; n?: number }
|
||||
): string =>
|
||||
template
|
||||
.replace(/\{name\}/g, vars.name ?? "")
|
||||
.replace(/\{n\}/g, vars.n !== undefined ? String(vars.n) : "");
|
||||
Reference in New Issue
Block a user