Socket
Socket
Sign inDemoInstall

emoji-regex

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

index.js
module.exports = function() {
return /\uD83C\uDDE6\uD83C\uDDE8|\uD83C\uDDE6\uD83C\uDDE9|\uD83C\uDDE6\uD83C\uDDEA|\uD83C\uDDE6\uD83C\uDDEB|\uD83C\uDDE6\uD83C\uDDEC|\uD83C\uDDE6\uD83C\uDDEE|\uD83C\uDDE6\uD83C\uDDF1|\uD83C\uDDE6\uD83C\uDDF2|\uD83C\uDDE6\uD83C\uDDF4|\uD83C\uDDE6\uD83C\uDDF6|\uD83C\uDDE6\uD83C\uDDF7|\uD83C\uDDE6\uD83C\uDDF8|\uD83C\uDDE6\uD83C\uDDF9|\uD83C\uDDE6\uD83C\uDDFA|\uD83C\uDDE6\uD83C\uDDFC|\uD83C\uDDE6\uD83C\uDDFD|\uD83C\uDDE6\uD83C\uDDFF|\uD83C\uDDE7\uD83C\uDDE6|\uD83C\uDDE7\uD83C\uDDE7|\uD83C\uDDE7\uD83C\uDDE9|\uD83C\uDDE7\uD83C\uDDEA|\uD83C\uDDE7\uD83C\uDDEB|\uD83C\uDDE7\uD83C\uDDEC|\uD83C\uDDE7\uD83C\uDDED|\uD83C\uDDE7\uD83C\uDDEE|\uD83C\uDDE7\uD83C\uDDEF|\uD83C\uDDE7\uD83C\uDDF1|\uD83C\uDDE7\uD83C\uDDF2|\uD83C\uDDE7\uD83C\uDDF3|\uD83C\uDDE7\uD83C\uDDF4|\uD83C\uDDE7\uD83C\uDDF6|\uD83C\uDDE7\uD83C\uDDF7|\uD83C\uDDE7\uD83C\uDDF8|\uD83C\uDDE7\uD83C\uDDF9|\uD83C\uDDE7\uD83C\uDDFB|\uD83C\uDDE7\uD83C\uDDFC|\uD83C\uDDE7\uD83C\uDDFE|\uD83C\uDDE7\uD83C\uDDFF|\uD83C\uDDE8\uD83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DDF8\uD83C\uDDFE|\uD83C\uDDF8\uD83C\uDDFF|\uD83C\uDDF9\uD83C\uDDE6|\uD83C\uDDF9\uD83C\uDDE8|\uD83C\uDDF9\uD83C\uDDE9|\uD83C\uDDF9\uD83C\uDDEB|\uD83C\uDDF9\uD83C\uDDEC|\uD83C\uDDF9\uD83C\uDDED|\uD83C\uDDF9\uD83C\uDDEF|\uD83C\uDDF9\uD83C\uDDF0|\uD83C\uDDF9\uD83C\uDDF1|\uD83C\uDDF9\uD83C\uDDF2|\uD83C\uDDF9\uD83C\uDDF3|\uD83C\uDDF9\uD83C\uDDF4|\uD83C\uDDF9\uD83C\uDDF7|\uD83C\uDDF9\uD83C\uDDF9|\uD83C\uDDF9\uD83C\uDDFB|\uD83C\uDDF9\uD83C\uDDFC|\uD83C\uDDF9\uD83C\uDDFF|\uD83C\uDDFA\uD83C\uDDE6|\uD83C\uDDFA\uD83C\uDDEC|\uD83C\uDDFA\uD83C\uDDF2|\uD83C\uDDFA\uD83C\uDDF8|\uD83C\uDDFA\uD83C\uDDFE|\uD83C\uDDFA\uD83C\uDDFF|\uD83C\uDDFB\uD83C\uDDE6|\uD83C\uDDFB\uD83C\uDDE8|\uD83C\uDDFB\uD83C\uDDEA|\uD83C\uDDFB\uD83C\uDDEC|\uD83C\uDDFB\uD83C\uDDEE|\uD83C\uDDFB\uD83C\uDDF3|\uD83C\uDDFB\uD83C\uDDFA|\uD83C\uDDFC\uD83C\uDDEB|\uD83C\uDDFC\uD83C\uDDF8|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDFE\uD83C\uDDEA|\uD83C\uDDFE\uD83C\uDDF9|\uD83C\uDDFF\uD83C\uDDE6|\uD83C\uDDFF\uD83C\uDDF2|\uD83C\uDDFF\uD83C\uDDFC|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u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uDE80-\uDECF\uDEE0-\uDEEC\uDEF0-\uDEF3]/g;
};
{
"name": "emoji-regex",
"version": "1.0.0",
"version": "1.0.1",
"description": "A regular expression to match all Emoji-only symbols as per the Unicode Standard.",

@@ -45,2 +45,4 @@ "homepage": "https://mths.be/emoji-regex",

"mocha": "^1.21.4",
"regenerate": "^1.0.0",
"regex-trie": "^1.0.3",
"string.fromcodepoint": "^0.2.1",

@@ -47,0 +49,0 @@ "unicode-tr51": "^1.0.0"

@@ -5,3 +5,3 @@ # emoji-regex [![Build status](https://travis-ci.org/mathiasbynens/emoji-regex.svg?branch=master)](https://travis-ci.org/mathiasbynens/emoji-regex) [![Code coverage status](http://img.shields.io/coveralls/mathiasbynens/emoji-regex/master.svg)](https://coveralls.io/r/mathiasbynens/emoji-regex) [![Dependency status](https://gemnasium.com/mathiasbynens/emoji-regex.svg)](https://gemnasium.com/mathiasbynens/emoji-regex)

This repository contains a script that generates this regular expression based on [the data from Unicode Technical Report #51](https://github.com/mathiasbynens/emoji-regex). Because of this, the regular expression can easily be updated whenever new emoji are added to the Unicode standard.
This repository contains a script that generates this regular expression based on [the data from Unicode Technical Report #51](https://github.com/mathiasbynens/unicode-tr51). Because of this, the regular expression can easily be updated whenever new emoji are added to the Unicode standard.

@@ -29,6 +29,6 @@ ## Installation

// → true
emojiRegex().test('🇾🇪');
emojiRegex().test('🇺🇸');
// → true
var flag = '🇾🇪'; // flag for Yemen
var flag = '🇺🇸'; // flag for United States
flag.match(emojiRegex())[0] == flag;

@@ -35,0 +35,0 @@ // → true

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc