linkify-it
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,8 @@ | ||
1.0.1 / 2015-04-19 | ||
------------------ | ||
- More strict default 2-characters tlds handle in flex links, to avoid | ||
false positives for `node.js`, `io.js` and so on. | ||
1.0.0 / 2015-03-25 | ||
@@ -2,0 +9,0 @@ ------------------ |
@@ -90,5 +90,12 @@ 'use strict'; | ||
/*eslint-disable max-len*/ | ||
// RE pattern for 2-character tlds (autogenerated by ./support/tlds_2char_gen.js) | ||
var tlds_2ch_src_re = 'a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]'; | ||
// DON'T try to make PRs with changes. Extend TLDs with LinkifyIt.tlds() instead | ||
var tlds_default = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|'); | ||
/*eslint-enable max-len*/ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
@@ -129,3 +136,3 @@ | ||
if (!self.__tlds_replaced__) { | ||
tlds.push('[a-z]{2}'); | ||
tlds.push(tlds_2ch_src_re); | ||
} | ||
@@ -132,0 +139,0 @@ tlds.push(re.src_xn); |
{ | ||
"name": "linkify-it", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Links recognition library with FULL unicode support", | ||
@@ -34,4 +34,4 @@ "keywords": [ | ||
"stylus": "~0.50.0", | ||
"tlds": "^1.26.0" | ||
"tlds": "^1.37.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
28697
570