aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmine El Baghdadi <75886237+NoobJsPerson@users.noreply.github.com> 2021-05-15 18:13:47 +0000
committerAmine El Baghdadi <75886237+NoobJsPerson@users.noreply.github.com> 2021-05-15 18:13:47 +0000
commit8c1853eb39ea4d251e00392f802df32233b83325 (patch)
tree8697a45af6e70e1a84053d2b7f1fa427634f65c4
parentef7b821d2a5143db9c0660cffc1189cf6e63dc29 (diff)
update interpolate.js
-rw-r--r--interpolate.js2
1 files changed, 1 insertions, 1 deletions
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);