linkify-it
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,8 @@ | ||
0.1.2 / 2015-02-26 | ||
------------------ | ||
- Fixed blockquoted links (some symbols exclusions), thanks to @MayhemYDG. | ||
- Fixed demo permalinks, thanks to @MayhemYDG. | ||
0.1.1 / 2015-02-22 | ||
@@ -2,0 +9,0 @@ ------------------ |
@@ -223,4 +223,4 @@ 'use strict'; | ||
// (?!_) cause 1.5x slowdown | ||
self.re.schema_test = RegExp('(^|(?!_)(?:' + re.src_ZPCcCf + '))(' + slist + ')', 'i'); | ||
self.re.schema_search = RegExp('(^|(?!_)(?:' + re.src_ZPCcCf + '))(' + slist + ')', 'ig'); | ||
self.re.schema_test = RegExp('(^|(?!_)(?:>|' + re.src_ZPCcCf + '))(' + slist + ')', 'i'); | ||
self.re.schema_search = RegExp('(^|(?!_)(?:>|' + re.src_ZPCcCf + '))(' + slist + ')', 'ig'); | ||
@@ -227,0 +227,0 @@ // |
@@ -132,7 +132,8 @@ 'use strict'; | ||
'(^|' + src_Z + ')(' + src_email_name + '@' + tpl_host_fuzzy_strict + ')'; | ||
'(^|>|' + src_Z + ')(' + src_email_name + '@' + tpl_host_fuzzy_strict + ')'; | ||
exports.tpl_link_fuzzy = | ||
// Fuzzy link can't be prepended with .:/\- and non punctuation. | ||
'(^|(?![.:/\\-_])(?:' + src_ZPCcCf + '))' + | ||
'(' + tpl_host_port_fuzzy_strict + src_path + ')'; | ||
// but can start with > (markdown blockquote) | ||
'(^|(?![.:/\\-_@])(?:[$+<=>^`|]|' + src_ZPCcCf + '))' + | ||
'((?![$+<=>^`|])' + tpl_host_port_fuzzy_strict + src_path + ')'; |
{ | ||
"name": "linkify-it", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Links recognition library with FULL unicode support", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -47,3 +47,3 @@ linkify-it | ||
console.log(linkify.match('Site github.com!')); // { | ||
console.log(linkify.match('Site github.com!')); // [ { | ||
// schema: "", | ||
@@ -55,3 +55,3 @@ // index: 5, | ||
// url: "http://github.com", | ||
// } | ||
// } ] | ||
``` | ||
@@ -82,3 +82,3 @@ | ||
normalize: function (match) { | ||
match.url = 'https://twitter.com/' + m.url.replace(/^@/, ''); | ||
match.url = 'https://twitter.com/' + match.url.replace(/^@/, ''); | ||
} | ||
@@ -85,0 +85,0 @@ }); |
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
26249
547