Skip to content

🐛 Bug: construction_worker confusion #319

@juftin

Description

@juftin

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

I ran into issues with https://github.com/momocow/semantic-release-gitmoji where the release notes aren't picking up the right construction_worker - I think this is an issue here on node-emoji

import * as emoji from 'node-emoji'

console.log(emoji.find('👷'))
console.log(emoji.find('👷‍♂️'))
console.log(emoji.find('👷‍♀️'))
{ emoji: '👷', key: 'construction_worker' }
{ emoji: '👷‍♂️', key: 'construction_worker_man' }
{ emoji: '👷‍♀', key: 'construction_worker_woman' }

Actual

import * as emoji from 'node-emoji'

console.log(emoji.find('👷'))
console.log(emoji.find('👷‍♂️'))
console.log(emoji.find('👷‍♀️'))
{ emoji: '👷', key: 'construction_worker_man' }
undefined
{ emoji: '👷‍♀', key: 'construction_worker_woman' }

Additional Info

https://playcode.io/2477888

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working :(

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions