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 1.2.0 to 1.2.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

1.2.1 / 2016-04-29
------------------
- Fix detect email after opening parenthesis: `(my@email.com)`, #32.
1.2.0 / 2015-06-29

@@ -2,0 +8,0 @@ ------------------

8

index.js

@@ -30,3 +30,3 @@ 'use strict';

function escapeRE (str) { return str.replace(/[.?*+^$[\]\\(){}|-]/g, '\\$&'); }
function escapeRE(str) { return str.replace(/[.?*+^$[\]\\(){}|-]/g, '\\$&'); }

@@ -239,3 +239,3 @@ ////////////////////////////////////////////////////////////////////////////////

var slist = Object.keys(self.__compiled__)
.filter(function(name) {
.filter(function (name) {
// Filter disabled & fake schemas

@@ -524,3 +524,3 @@ return name.length > 0 && self.__compiled__[name];

* Returns array of found link descriptions or `null` on fail. We strongly
* to use [[LinkifyIt#test]] first, for best speed.
* recommend to use [[LinkifyIt#test]] first, for best speed.
*

@@ -592,3 +592,3 @@ * ##### Result match description

.sort()
.filter(function(el, idx, arr) {
.filter(function (el, idx, arr) {
return el !== arr[idx - 1];

@@ -595,0 +595,0 @@ })

@@ -148,3 +148,3 @@ 'use strict';

'(^|>|' + src_ZCc + ')(' + src_email_name + '@' + tpl_host_fuzzy_strict + ')';
'(^|>|\\(|' + src_ZCc + ')(' + src_email_name + '@' + tpl_host_fuzzy_strict + ')';

@@ -151,0 +151,0 @@ exports.tpl_link_fuzzy =

{
"name": "linkify-it",
"version": "1.2.0",
"version": "1.2.1",
"description": "Links recognition library with FULL unicode support",

@@ -12,2 +12,6 @@ "keywords": [

"repository": "markdown-it/linkify-it",
"files": [
"index.js",
"lib/"
],
"license": "MIT",

@@ -21,10 +25,10 @@ "scripts": {

"devDependencies": {
"ansi": "~0.3.0",
"autoprefixer-stylus": "~0.5.0",
"benchmark": "~1.0.0",
"ansi": "^0.3.0",
"autoprefixer-stylus": "^0.9.2",
"benchmark": "^2.1.0",
"browserify": "*",
"chai": "^2.0.0",
"coveralls": "~2.11.2",
"jade": "~1.9.2",
"eslint": "0.13.0",
"chai": "^3.5.0",
"coveralls": "^2.11.2",
"jade": "^1.11.0",
"eslint": "~2.9.0",
"eslint-plugin-nodeca": "^1.0.0",

@@ -34,6 +38,6 @@ "istanbul": "*",

"mocha": "*",
"ndoc": "^3.1.0",
"stylus": "~0.50.0",
"ndoc": "^4.0.1",
"stylus": "~0.54.5",
"tlds": "^1.37.0"
}
}

@@ -39,9 +39,9 @@ linkify-it

// Reload full tlds list & add uniffocial `.onion` domain.
// Reload full tlds list & add unofficial `.onion` domain.
linkify
.tlds(require('tlds')) // Reload with full tlds list
.tlds('.onion', true) // Add uniffocial `.onion` domain
.tlds('.onion', true) // Add unofficial `.onion` domain
.linkify.add('git:', 'http:') // Add `git:` ptotocol as "alias"
.linkify.add('ftp:', null) // Disable `ftp:` ptotocol
.set({ fuzzyIP: true }); // Enable IPs in fuzzy links (withour schema)
.set({ fuzzyIP: true }); // Enable IPs in fuzzy links (without schema)

@@ -60,3 +60,3 @@ console.log(linkify.test('Site github.com!')); // true

##### Exmple 2. Add twitter mentions handler
##### Example 2. Add twitter mentions handler

@@ -120,6 +120,6 @@ ```js

- __fuzzyLink__ - recognige URL-s without `http(s):` prefix. Default `true`.
- __fuzzyLink__ - recognige URL-s without `http(s)://` head. Default `true`.
- __fuzzyIP__ - allow IPs in fuzzy links above. Can conflict with some texts
like version numbers. Default `false`.
- __fuzzyEmail__ - recognize emails without `mailto:` prefix.
- __fuzzyEmail__ - recognize emails without `mailto:` prefix. Default `true`.

@@ -162,13 +162,11 @@

Load (or merge) new tlds list. Those are user for fuzzy links (without prefix)
to avoid false positives. By default this algorythm used:
Load (or merge) new tlds list. Those are needed for fuzzy links (without schema)
to avoid false positives. By default:
- hostname with any 2-letter root zones are ok.
- biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф
are ok.
- 2-letter root zones are ok.
- biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф are ok.
- encoded (`xn--...`) root zones are ok.
If list is replaced, then exact match for 2-chars root zones will be checked.
If that's not enougth, you can reload defaults with more detailed zones list.
### .add(schema, definition)

@@ -175,0 +173,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