couchbase-index-manager
Version:
Manage Couchbase indexes during the CI/CD process
17 lines • 479 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ensureEscaped = void 0;
const lodash_1 = require("lodash");
function ensureEscaped(identifier) {
if ((0, lodash_1.isNil)(identifier)) {
return identifier;
}
if (!identifier.startsWith('`')) {
return '`' + identifier.replace(/`/g, '``') + '`';
}
else {
return identifier;
}
}
exports.ensureEscaped = ensureEscaped;
//# sourceMappingURL=util.js.map