wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
10 lines • 387 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var regex = /^.*?\((.+?)\)$/i;
var removeHOC = function (string) {
if (string === void 0) { string = ''; }
var _a = string.match(regex) || [], _b = _a[1], componentName = _b === void 0 ? '' : _b;
return componentName || string;
};
exports.default = removeHOC;
//# sourceMappingURL=remove-hoc.js.map