cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
21 lines • 483 B
JavaScript
;
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