New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mehdown

Package Overview
Dependencies
Maintainers
4
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mehdown - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

4

lib/index.js

@@ -8,3 +8,3 @@ const url = require('url');

const commandRegExp = /^\/(\w+)\s?(.*)/gim;
const commandRegExp = /^\/(\w+)[ ]*(.*)/gim;
const emptyImage = 'data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';

@@ -35,3 +35,3 @@

shrug: function(args, callback) {
callback(null, '¯\\\\_(ツ)\\_/¯');
callback(null, '¯\\\\\\\_(ツ)\\\_/¯');
}

@@ -38,0 +38,0 @@ };

@@ -21,3 +21,3 @@ {

},
"version": "2.1.3"
"version": "2.1.4"
}

@@ -109,6 +109,20 @@ const assert = require('assert');

mehdown.render('/shrug', function(err, html) {
assert.equal(html, '<p>¯\\\_(ツ)\_/¯</p>');
assert.equal(html, '<p>¯\\\_(ツ)_/¯</p>');
done();
});
});
it('/shrug\n/shrug', function(done) {
mehdown.render('/shrug\n/shrug', function(err, html) {
assert.equal(html, '<p>¯\\\_(ツ)_/¯<br />\n¯\\\_(ツ)_/¯</p>');
done();
});
});
it('/shrug\n/shrug\n/shrug', function(done) {
mehdown.render('/shrug\n/shrug\n/shrug', function(err, html) {
assert.equal(html, '<p>¯\\\_(ツ)_/¯<br />\n¯\\\_(ツ)_/¯<br />\n¯\\\_(ツ)_/¯</p>');
done();
});
});
});

@@ -115,0 +129,0 @@ });

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