diff options
author | Mango0x45 <thomasvoss@live.com> | 2021-05-16 20:57:02 +0200 |
---|---|---|
committer | Mango0x45 <thomasvoss@live.com> | 2021-05-16 20:57:02 +0200 |
commit | 3dab6cf2fac0a07e68714cf3c2225030c735d7c8 (patch) | |
tree | 6fff7156264a02a5d2525738642e41052660d7c9 | |
parent | 8f0de5e1c983753ebf443fb2e5c7c1cad0a5f708 (diff) |
Fix formatting
-rw-r--r-- | main.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |