@clickup/pg-mig
Version:
PostgreSQL schema migration tool with microsharding and clustering support
9 lines • 354 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.unindent = unindent;
function unindent(text) {
text = text.replace(/^([ \t\r]*\n)+/s, "").trimEnd();
const matches = text.match(/^[ \t]+/s);
return matches ? text.replace(new RegExp("^" + matches[0], "mg"), "") : text;
}
//# sourceMappingURL=unindent.js.map