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

linkify-it

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkify-it - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

CHANGELOG.md

@@ -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 @@ ------------------

4

index.js

@@ -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 @@ });

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