ddl-manager
Version:
store postgres procedures and triggers in files
17 lines • 460 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapText = void 0;
function wrapText(text, tag = "tag") {
text += "";
if (!text.includes(`$${tag}$`)) {
return `$${tag}$${text}$${tag}$`;
}
let index = 1;
while (text.includes("$tag" + index + "$")) {
index++;
}
tag += index;
return `$${tag}$${text}$${tag}$`;
}
exports.wrapText = wrapText;
//# sourceMappingURL=wrapText.js.map