@tinymce/beehive-flow
Version:
A CLI tool implementing the beehive flow git branching process
13 lines • 652 B
JavaScript
;
// Some of these functions were copied from Katamari. Trying to avoid dependencies on Tiny libraries in this tool.
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeLeading = exports.showStringOrUndefined = void 0;
/**
* Show the parameter as a JS literal
* @param s
*/
const showStringOrUndefined = (s) => s === undefined ? 'undefined' : '"' + s.replace(/"/g, '\\"') + '"';
exports.showStringOrUndefined = showStringOrUndefined;
const removeLeading = (str, prefix) => str.startsWith(prefix) ? str.substring(prefix.length) : str;
exports.removeLeading = removeLeading;
//# sourceMappingURL=StringUtils.js.map