UNPKG

@cloudinary/url-gen

Version:

You are invited to influence our new SDK [Click here to view github discussion](https://github.com/cloudinary/js-url-gen/discussions/602) =========================

13 lines (12 loc) 299 B
/** * * @description - Replace (,) and (/) in a string to its URL encoded equivalence * @param {string} str * @private */ function serializeCloudinaryCharacters(str = '') { return str .replace(/,/g, '%2C') .replace(/\//g, '%2F'); } export { serializeCloudinaryCharacters };