Comparing version 0.0.2 to 0.0.3
@@ -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'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6569
93