UNPKG

couchbase-index-manager

Version:
16 lines 447 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ensureEscaped = ensureEscaped; 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; } } //# sourceMappingURL=util.js.map