Socket
Socket
Sign inDemoInstall

remark-emoji

Package Overview
Dependencies
5
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

11

index_test.js

@@ -88,2 +88,13 @@ const assert = require('assert');

});
it('can handle emoji that use dashes to separate words instead of underscores', () => {
const cases = {
'The Antarctic flag is represented by :flag-aq:': 'The Antarctic flag is represented by 🇦🇶\n',
':man-woman-girl-boy:': '👨‍👩‍👧‍👦\n'
};
return Promise.all(
Object.keys(cases).map(c => process(c).then(r => assert.equal(r, cases[c])))
);
});
});

2

index.js
const visit = require('unist-util-visit');
const emoji = require('node-emoji');
const RE_EMOJI = /:\+1:|:-1:|:\w+:/g;
const RE_EMOJI = /:\+1:|:-1:|:[\w-]+:/g;

@@ -6,0 +6,0 @@ function plugin(_, settings) {

{
"name": "remark-emoji",
"version": "1.1.0",
"version": "1.1.1",
"description": "Emoji transformer plugin for Remark",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc