Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Sanitize input in icon synonyms update script #33989

Merged
merged 1 commit into from Aug 31, 2022

Conversation

michaldudak
Copy link
Member

The icon metadata from https://fonts.google.com/metadata/icons contain tags that cause our script to produce invalid JS. Specifically, a few tags are surrounded by apostrophes. This fix removes any apostrophes found in the tags.
Additionally, it skips tags that are clearly invalid - ones that contain "Remove", "Duplicate", "Same as", "remove others", so these strings don't appear as synonyms.

@michaldudak michaldudak added docs Improvements or additions to the documentation core Infrastructure work going on behind the scenes labels Aug 19, 2022
@mui-bot
Copy link

mui-bot commented Aug 19, 2022

No bundle size changes

Generated by 🚫 dangerJS against d4a10f0

@michaldudak
Copy link
Member Author

@siriwatknp, @oliviertassinari can I please have this PR reviewed?

@oliviertassinari oliviertassinari added the package: icons Specific to @mui/icons label Aug 30, 2022
@oliviertassinari
Copy link
Member

I have added the scope label, so we can more easily find others like this in the future. e.g, it looks like a follow up on #32742 👍

@michaldudak
Copy link
Member Author

I haven't added it in the first place as the code lives in the docs directory, not in the icons package. But I'm OK with having it to indicate the change is related to icons.

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 tested, looks good to me.

@michaldudak michaldudak merged commit 97277e1 into mui:master Aug 31, 2022
@michaldudak michaldudak deleted the fix-synonyms-script branch August 31, 2022 07:34
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes docs Improvements or additions to the documentation package: icons Specific to @mui/icons
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants