cs
This commit is contained in:
10
node_modules/@ant-design/cssinjs-utils/lib/util/getCompVarPrefix.js
generated
vendored
Normal file
10
node_modules/@ant-design/cssinjs-utils/lib/util/getCompVarPrefix.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
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('-'));
|
||||
};
|
||||
var _default = exports.default = getCompVarPrefix;
|
||||
Reference in New Issue
Block a user