Coder Social home page Coder Social logo

guanting112 / elixir_remove_emoji Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 5.0 33 KB

Remove Emoji ๐Ÿ˜ˆ๐Ÿˆฒ๐Ÿ˜ฑโ‰๏ธ ( for Elixir 1.4+ ~ 1.10.x )

Home Page: https://hex.pm/packages/remove_emoji/

License: MIT License

Elixir 100.00%

elixir_remove_emoji's Introduction

Remove Emoji

Build Status

It can remove any of the emoji. ๐Ÿ’ป๐Ÿ”ฅ๐Ÿคฏ๐Ÿšซ ๆ‚จๅฏไปฅ้€้Ž่ฉฒๅฅ—ไปถ็งป้™คไปคไบบๅ›ฐๆ“พ็š„ Emoji ็ฌฆ่™Ÿใ€‚

original_string = "๐Ÿ‘ฆ๐Ÿ‘ฆ๐Ÿป๐Ÿ‡ฏ๐Ÿ‡ต๐Ÿ‡ฐ๐Ÿ‡ณ๐Ÿ‡ฐ๐Ÿ‡ท๐Ÿ‘ฆ๐Ÿผ๐Ÿ‘ฆ๐Ÿฝ๐Ÿ‘ฆ๐Ÿพ๐Ÿ˜„๐Ÿ˜…๐Ÿ˜†๐Ÿ˜‡๐Ÿ˜ˆ๐Ÿ˜‰๐Ÿ˜Š"
sanitized_string = original_string |> RemoveEmoji.sanitize()

# true, :ok
IO.puts "" === sanitized_string

Installation / ๅฎ‰่ฃๆ–นๅผ

่ซ‹ๅœจๆ‚จ็š„ Elixir ๅฐˆๆกˆ่ฃก็š„ mix.exs ๅŠ ๅ…ฅไปฅไธ‹ๆŒ‡ไปค๏ผŒ็„ถๅพŒๅŸท่กŒ mix deps.get ๆ›ดๆ–ฐไพ่ณดๅณๅฏใ€‚

def deps do
  [
    {:remove_emoji, "~> 1.0.0"}
  ]
end

Demo ( Before / After )

emoji_effect

LICENSE

MIT LICENSE ( See LICENSE.txt )

elixir_remove_emoji's People

Contributors

guanting112 avatar sessary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.