Giter Site home page Giter Site logo

gomoji's People

Contributors

ejain avatar forpelevin avatar mastern2k3 avatar yongjiajun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gomoji's Issues

All numbers are judged as emoji

Hi there,
I found if the string including any number, there will always return true, for example:

package main

import (
	"fmt"

	"github.com/forPelevin/gomoji"
)

func main() {
	fmt.Println(gomoji.ContainsEmoji("1"))
	// output: true

	fmt.Println(gomoji.ContainsEmoji("asdf1"))
	// output: true

	fmt.Println(gomoji.ContainsEmoji("asdf"))
	// output: false
}

skin tone support

๐Ÿป
Hi, this emoji not support
please add support this emoji and other skin tone support

Skintone support

	gomoji.ContainsEmoji(๐Ÿ‘๐Ÿฟ) 

returns false

while

	gomoji.ContainsEmoji(๐Ÿ‘) 

is true.
I can open a PR to fix this but i see your emoji's are generated by some generator.go file that is not included in this Repo @forPelevin

Support for latest emoji release https://unicode.org/emoji/charts-14.0/emoji-released.html

Thanks for this library. It's very useful for detecting emojis in a fast and efficient manner.

This library is using the emoji api which only supports Emojis up to v13.0 currently. Can we update it to support the latest release https://emojipedia.org/unicode-14.0/ too? Could possibly fetch the API and then statically add the new ones in generator.go until the Emoji API is updated for this?

Official release: https://unicode.org/emoji/charts-14.0/emoji-released.html

ReplaceEmojisWithFunc: Unexpectedly trims strings

Function ReplaceEmojisWithFunc unexpectedly returns trimmed version of strings, thus modifying the original string. I would like to know the reason behind this, as it's not the responsibility of this function.

Data size

Is there any way the 1.25MB file with emojis. that is loaded into memory, could be made WAY smaller?

Feature request: Emoji replacement

Hi @forPelevin, thank you for maintaining the project.

I'm glad that I discovered this project as I find myself needing to work with emojis in Golang ๐Ÿ˜„
However, one of my use cases involves replacing all emojis within a string with a given rune.

Since I've already worked on it on my own fork, I'll open up a PR against the main branch to see what you think ๐Ÿ‘

Regional indicators are not supported.

I have a json like so:

[{"emoji": "๐Ÿ‡ฆ", "id": 855898699988205598},
{"emoji": "๐Ÿ‡ง", "id": 855908027546468414},
{"emoji": "๐Ÿ‡จ", "id": 855910336619872306},
{"emoji": "๐Ÿ‡ฉ", "id": 874810967303802891},
{"emoji": "๐Ÿ‡ช", "id": 855908176960552971},
{"emoji": "๐Ÿ‡ซ", "id": 855895610129645598},
{"emoji": "๐Ÿ‡ฌ", "id": 856311847765934080},
{"emoji": "๐Ÿ‡ญ", "id": 863577067869437962},
{"emoji": "๐Ÿ‡ฎ", "id": 855998416941481984},
{"emoji": "๐Ÿ‡ฏ", "id": 872964477518229524},
{"emoji": "๐Ÿ‡ฐ", "id": 855901430544203787},
{"emoji": "๐Ÿ‡ฑ", "id": 856312436171997214},
{"emoji": "๐Ÿ‡ฒ", "id": 892549953568788511},
{"emoji": "๐Ÿ‡ณ", "id": 856661374465474590},
{"emoji": "๐Ÿ‡ด", "id": 875603397171097660},
{"emoji": "๐Ÿ‡ต", "id": 855910253577240628},
{"emoji": "๐Ÿ‡ถ", "id": 855895290828423168},
{"emoji": "๐Ÿ‡ท", "id": 855896139885445151}]

using

gomoji.CollectAll(s)

Returns an empty slice.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.