emoji-strip
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30689
41