Skip to content

Commit

Permalink
Fix overwriting brands check (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbiede authored Nov 9, 2023
1 parent 7e8529c commit 4b4288e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/create-icon-set-from-fontawesome6.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function createFA6iconSet(glyphMap, metadata = {}, pro = false) {

function glyphValidator(glyph, style) {
let family = style === 'brand' ? 'brands' : style;
family = style === 'sharpSolid' ? 'sharp-solid' : style;
family = style === 'sharpSolid' ? 'sharp-solid' : family;
if (metadataKeys.indexOf(family) === -1) return false;
return metadata[family].indexOf(glyph) !== -1;
}
Expand Down

0 comments on commit 4b4288e

Please sign in to comment.