UNPKG

@netlify/content-engine

Version:
13 lines 406 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stripIndent = stripIndent; function stripIndent(tpl, ...expressions) { let str = ``; tpl.forEach((chunk, index) => { str += chunk.replace(/^(\\n)*[ ]+/gm, `$1`) + (expressions[index] ? expressions[index] : ``); }); return str; } //# sourceMappingURL=strip-indent.js.map