From 8c1853eb39ea4d251e00392f802df32233b83325 Mon Sep 17 00:00:00 2001 From: Amine El Baghdadi <75886237+NoobJsPerson@users.noreply.github.com> Date: Sat, 15 May 2021 18:13:47 +0000 Subject: update interpolate.js --- interpolate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpolate.js b/interpolate.js index 443450e..70ac4eb 100644 --- a/interpolate.js +++ b/interpolate.js @@ -1,6 +1,6 @@ const regex = /\${[^{]+}/g; -export default function interpolate(template, variables, fallback) { +export default function interpolate(template, variables) { return template.replace(regex, (match) => { const path = match.slice(2, -1).trim(); return getObjPath(path, variables); -- cgit v1.2.3