@clickup/pg-mig
Version:
PostgreSQL schema migration tool with microsharding and clustering support
11 lines • 353 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeSqlComments = removeSqlComments;
function removeSqlComments(content) {
return content
.replace(/--[^\n]*/gm, "")
.replace(/\/\*.*?\*\//gs, "")
.replace(/^(\s*;)+/gs, "")
.trim();
}
//# sourceMappingURL=removeSqlComments.js.map