wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
8 lines • 307 B
JavaScript
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;
};
export default removeHOC;
//# sourceMappingURL=remove-hoc.js.map