Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emoji-strip

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-strip - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

index.js

@@ -12,3 +12,3 @@ var gemoji = require('gemoji'),

emojiArray = Object.keys(gemoji.unicode);
emojiPattern = '[' + emojiArray.join('') + ']+';
emojiPattern = '(' + emojiArray.join('|') + ')+';
emojiRegex = new RegExp(emojiPattern, 'g');

@@ -15,0 +15,0 @@

{
"name": "emoji-strip",
"description": "Strip emoji from a string in Node.js and browsers.",
"version": "0.0.1",
"version": "0.0.2",
"author": "Nizar Khalife Iglesias <khalifenizar@gmail.com>",

@@ -6,0 +6,0 @@ "bugs": {

@@ -14,1 +14,10 @@ var tape = require('tape'),

});
tape('don’t magically remove digits', function (t) {
emoji = '9999 ways to die🔫 in the west';
t.equal(emojiStrip(emoji), '9999 ways to die in the west');
emoji = '⚡zero 0 🐗one 1 🐴two 2 🐋three 3 🎃four 4 🍌five 5 🍻six 6 💣seven 7 🍪eight 8 eight emoji ah ah ah';
t.equal(emojiStrip(emoji), 'zero 0 one 1 two 2 three 3 four 4 five 5 six 6 seven 7 eight 8 eight emoji ah ah ah');
t.end();
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc