From ca91fb5dc0a5c7feb4516f5e9ae52e91b744b98f Mon Sep 17 00:00:00 2001 From: Stripes <46821970+danamag@users.noreply.github.com> Date: Thu, 27 Oct 2022 11:49:28 +0300 Subject: [PATCH] Update html.js --- lib/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/html.js b/lib/html.js index 7149e80..3a5f759 100644 --- a/lib/html.js +++ b/lib/html.js @@ -16,7 +16,7 @@ const processHtml = (templateName, map) => { else if (templateName === 'homePageAddon') template = homePageAddonTemplate - var re = new RegExp(Object.keys(map).join('|'),'gi') + const re = new RegExp(Object.keys(map).join('|'),'gi') return template.replace(re, matched => map[matched]) }