UNPKG

cypress-cucumber-steps

Version:
21 lines 483 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.camelCase = camelCase; var HYPHEN_REGEX = /-([a-z])/g; /** * Replacer that capitalizes the first character in a string match. * * @private */ function capitalize(match, character) { return character.toUpperCase(); } /** * Transforms a string to camelCase. * * @private */ function camelCase(text) { return text.replace(HYPHEN_REGEX, capitalize); } //# sourceMappingURL=string.js.map