15 lines
377 B
JavaScript
15 lines
377 B
JavaScript
|
|
/**
|
||
|
|
* @license lucide-react v1.7.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/
|
||
|
|
|
||
|
|
const toCamelCase = (string) => string.replace(
|
||
|
|
/^([A-Z])|[\s-_]+(\w)/g,
|
||
|
|
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
||
|
|
);
|
||
|
|
|
||
|
|
export { toCamelCase };
|
||
|
|
//# sourceMappingURL=toCamelCase.js.map
|