Skip to content

Commit

Permalink
make minor variable rename
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvice committed Oct 2, 2024
1 parent 40fd62e commit c56874e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const ICON_FAMILIES = [
{ id: 'materialsymbolssharp', postfix: 'Sharp' },
]

const getIncludedFamilies = (families) => {
const notIncludedFamilies = families.map((family) =>
const getIncludedFamilies = (unsupportedFamilies) => {
const unsupportedFamilyIds = unsupportedFamilies.map((family) =>
family.replace(/\s+/g, '').toLowerCase(),
)
return ICON_FAMILIES.filter(
(family) => !notIncludedFamilies.includes(family.id),
(family) => !unsupportedFamilyIds.includes(family.id),
)
}

Expand Down

0 comments on commit c56874e

Please sign in to comment.