Skip to content

don't split combined emojiΒ #21

@mesqueeb

Description

@mesqueeb
  • input: πŸ„πŸΌβ€β™‚οΈ
  • expected output: πŸ„πŸΌβ€β™‚οΈ
  • actual output: β™‚β€πŸΌπŸ„

I wonder how you can achieve tokenising a combined emoji into 1 character.

This library seems to correctly do it for me:
https://github.com/bluelovers/runes

It will tokenise πŸ„πŸΌβ€β™‚οΈ as just 1 character. (it doesn't flip sentences though...)

BTW, do you consider extracting just the tokeniser part of this library without the reverse part into a separate NPM package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions