mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added files
This commit is contained in:
18
server/node_modules/emoji-strip/index.js
generated
vendored
Normal file
18
server/node_modules/emoji-strip/index.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var gemoji = require('gemoji'),
|
||||
emojiPattern,
|
||||
emojiArray,
|
||||
emojiRegex
|
||||
;
|
||||
|
||||
function emojiStrip (str) {
|
||||
return str.replace(emojiStrip.regex, '');
|
||||
}
|
||||
|
||||
emojiArray = Object.keys(gemoji.unicode);
|
||||
emojiPattern = '(' + emojiArray.join('|') + ')+';
|
||||
emojiRegex = new RegExp(emojiPattern, 'g');
|
||||
|
||||
emojiStrip.emoji = emojiArray;
|
||||
emojiStrip.regex = new RegExp(emojiPattern, 'g');
|
||||
|
||||
module.exports = emojiStrip;
|
||||
Reference in New Issue
Block a user