Single key column name simplification
This commit is contained in:
parent
8748a37c04
commit
c6f4832ee4
6 changed files with 116 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue