Single key column name simplification

This commit is contained in:
Bán Dénes 2022-04-16 12:44:55 +02:00
parent 8748a37c04
commit c6f4832ee4
6 changed files with 116 additions and 15 deletions

View file

@ -26,7 +26,7 @@ exports.template = (str, vals={}) => {
const replacement = deep(vals, match[1]) || ''
res = res.substring(0, match.index + shift)
+ replacement
+ res.substring(match.index + match[0].length)
+ res.substring(match.index + shift + match[0].length)
shift += replacement.length - match[0].length
}
return res