Skip to content

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

License

Notifications You must be signed in to change notification settings

guanting112/elixir_remove_emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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 )

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages