You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mehdown

Package Overview
Dependencies
Maintainers
1
Versions
138
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

to
1.5.1

2

lib/index.js

@@ -57,3 +57,3 @@ var Mehdown;

//Kickstarter
text = text.replace(/<a href="https?:\/\/(?:www\.)?(?:kickstarter\.com\/projects\/)?(\d+)\/([\w-]+).*">https?:\/\/(?:www\.)?(?:kickstarter\.com\/projects\/)?(\d+)\/([\w-]+).*<\/a>/g, Mehdown.kickstarter('$1', '$2'));
text = text.replace(/<a href="https?:\/\/(?:www\.)?(?:kickstarter\.com\/projects\/)?([\w-]+)\/([\w-]+).*">https?:\/\/(?:www\.)?(?:kickstarter\.com\/projects\/)?([\w-]+)\/([\w-]+).*<\/a>/g, Mehdown.kickstarter('$1', '$2'));

@@ -60,0 +60,0 @@ // Anchors

@@ -13,3 +13,3 @@ {

},
"version": "1.5.0"
"version": "1.5.1"
}

@@ -12,3 +12,3 @@ mehdown

- Support for spoilers in the BBCode syntax of: [spoiler]This text will be blurred until you mouse over it[/spoiler]
- Support for strikethrough using ~~strikethrough~~ syntax
- Support for strikethrough using \~~strikethrough~~ syntax
- Support for Twitter status embeds

@@ -15,0 +15,0 @@ - Support for Vimeo and YouTube video embeds

@@ -140,2 +140,8 @@ var assert = require('assert');

});
});
it('https://www.kickstarter.com/projects/schlock/crossing-paths-film-photography-documentary?ref=discover_rec', function() {
var body = '<p><a href="https://www.kickstarter.com/projects/schlock/crossing-paths-film-photography-documentary?ref=discover_rec">https://www.kickstarter.com/projects/schlock/crossing-paths-film-photography-documentary?ref=discover_rec</a></p>';
var text = mehdown.parse(body);
assert.equal(text, '<p><iframe class="kickstarter" frameborder="0" scrolling="no" src="//www.kickstarter.com/projects/schlock/crossing-paths-film-photography-documentary/widget/card.html"></iframe></p>');
});
});