Skip to content

Commit

Permalink
fix extra slash for emojis with skintone
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyCrespin committed Jul 12, 2023
1 parent 03035e2 commit b57ddd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emojiData.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function generateEmojiData() {
const glyphMod = String.fromCodePoint(
...skintoneCode.split(' ').map((c) => parseInt(c, 16))
);
const folder = `${emojiFolder}/${name}/${hasSkinToneFolder ? '/' + skintone : ''}`;
const folder = `${emojiFolder}/${name}${hasSkinToneFolder ? '/' + skintone : ''}`;
const emojiStyles = await getFolders(path.join(__dirname, folder));

emojiData.emojis.push({
Expand Down

0 comments on commit b57ddd2

Please sign in to comment.