diff --git a/index.js b/index.js index 3e9cdb7..e212558 100644 --- a/index.js +++ b/index.js @@ -104,6 +104,11 @@ const parseString = (() => { return null; } + // Accommodate numbers as values. + if (matches.length === 1 && str.startsWith('{{') && str.endsWith('}}')) { + return value; + } + return str.replace(match, value); }, str); };