korbit-ai[bot] commented on code in PR #34995:
URL: https://github.com/apache/superset/pull/34995#discussion_r2319658536
##########
superset-frontend/packages/superset-ui-core/src/components/Icons/BaseIcon.tsx:
##########
@@ -22,7 +22,7 @@ import { AntdIconType, BaseIconProps, CustomIconType,
IconType } from './types';
const genAriaLabel = (fileName: string) => {
const name = fileName.replace(/_/g, '-'); // Replace underscores with dashes
- const words = name.split(/(?=[A-Z])/); // Split at uppercase letters
+ const words = name.split(/(?=[A-Z])/).filter(word => word.length > 0); //
Split at uppercase letters and filter out empty strings
Review Comment:
Great, thanks for implementing the optimization!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]