Add mackup() to beautify template strings

This commit is contained in:
Christoph Diehl 2018-02-03 10:16:08 +01:00
parent e6af48caca
commit c8403064f3
No known key found for this signature in database
GPG Key ID: 799CE5B68FEF404A
1 changed files with 2 additions and 1 deletions

View File

@ -89,5 +89,6 @@ utils.common = {
}
}
return obj1
}
},
mockup: (obj) => obj.split('\n').map((ln) => ln.trim()).join('')
}