Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blockquote

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blockquote - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

lib/blockquote.js

@@ -21,4 +21,4 @@ /**

, {
regex: /{% ?blockquote ([^{}]+?) ((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?) ([^{}]+?) %}((.|\s)*?){% ?endblockquote ?%}/g
, replacement: '<blockquote><p>$7</p><footer><strong>$1</strong><cite><a href="$2">$6</a></cite></footer></blockquote>'
regex: /{% ?blockquote ([^{}]+?) \<a href=\"((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)\"\>[^<>]*\<\/a\> ([^{}]+?) %}((.|\s)*?){% ?endblockquote ?%}/g
, replacement: '<blockquote><p>$7</p><footer><strong>$1</strong> <cite><a href="$2" target="_blank">$6</a></cite></footer></blockquote>'
}

@@ -25,0 +25,0 @@ // Author

@@ -11,3 +11,3 @@ {

],
"version": "0.0.2",
"version": "0.0.3",
"repository": {

@@ -14,0 +14,0 @@ "type": "git",

@@ -63,4 +63,4 @@ var tests

, "blockquote author link title": function () {
var actual = blockquote.show('a{% blockquote Douglas Adams http://intergalactic.federation.edu/pizza-offer Pizza Offer %}something{% endblockquote %}b')
, expected = 'a<blockquote><p>something</p><footer><strong>Douglas Adams</strong><cite><a href="http://intergalactic.federation.edu/pizza-offer">Pizza Offer</a></cite></footer></blockquote>b';
var actual = blockquote.show('a{% blockquote Douglas Adams <a href="http://intergalactic.federation.edu/pizza-offer">http://intergalactic.federation.edu/pizza-offer</a> Pizza Offer %}something{% endblockquote %}b')
, expected = 'a<blockquote><p>something</p><footer><strong>Douglas Adams</strong> <cite><a href="http://intergalactic.federation.edu/pizza-offer" target="_blank">Pizza Offer</a></cite></footer></blockquote>b';

@@ -71,4 +71,4 @@ assert.strictEqual(actual, expected, 'text is blockquoted with author and citation with link');

, "blockquote author link title (shorttag)": function () {
var actual = blockquote.show('a{%blockquote Douglas Adams http://intergalactic.federation.edu/pizza-offer Pizza Offer %}something{%endblockquote%}b')
, expected = 'a<blockquote><p>something</p><footer><strong>Douglas Adams</strong><cite><a href="http://intergalactic.federation.edu/pizza-offer">Pizza Offer</a></cite></footer></blockquote>b';
var actual = blockquote.show('a{%blockquote Douglas Adams <a href="http://intergalactic.federation.edu/pizza-offer">http://intergalactic.federation.edu/pizza-offer</a> Pizza Offer %}something{%endblockquote%}b')
, expected = 'a<blockquote><p>something</p><footer><strong>Douglas Adams</strong> <cite><a href="http://intergalactic.federation.edu/pizza-offer" target="_blank">Pizza Offer</a></cite></footer></blockquote>b';

@@ -75,0 +75,0 @@ assert.strictEqual(actual, expected, 'text is blockquoted with author and citation with link');

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