From 3dab6cf2fac0a07e68714cf3c2225030c735d7c8 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Sun, 16 May 2021 20:57:02 +0200 Subject: Fix formatting --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index e806ef5..6e13a88 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,6 @@ /* Define the interpolate function */ -function interpolate(template, variables) { +function interpolate(template, variables) +{ return template.replace(/\${[^{]+}/g, (match) => { const path = match.slice(2, -1).trim(); return variables[path]; @@ -135,7 +136,7 @@ function parse_time(event) } /* If cmt isn't available fallback to lct, also allow raw numbers */ - if (!(input = dinfo.cmt) && !(input = dinfo.lct) && typeof((input = dinfo)) !== "number") { + if (!(input = dinfo.cmt) && !(input = dinfo.lct) && typeof ((input = dinfo)) !== "number") { document.getElementById(event.target.id).value = ""; return; } -- cgit v1.2.3