UNPKG

@phoss/cssinjs-utils

Version:

A cssinjs util library to support Ant Design (antd) and its ecosystem libraries.

4 lines 251 B
var getCompVarPrefix = function getCompVarPrefix(component, prefix) { return "".concat([prefix, component.replace(/([A-Z]+)([A-Z][a-z]+)/g, '$1-$2').replace(/([a-z])([A-Z])/g, '$1-$2')].filter(Boolean).join('-')); }; export default getCompVarPrefix;