Skip to content

Commit fb938e0

Browse files
committed
Version bump 1.6.1
1 parent 342695a commit fb938e0

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

dist/Autolinker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
22
* Autolinker.js
3-
* 1.6.0
3+
* 1.6.1
44
*
5-
* Copyright(c) 2017 Gregory Jacobs <[email protected]>
5+
* Copyright(c) 2018 Gregory Jacobs <[email protected]>
66
* MIT License
77
*
88
* https://github.com/gregjacobs/Autolinker.js
@@ -241,7 +241,7 @@ Autolinker.parse = function( textOrHtml, options ) {
241241
*
242242
* Ex: 0.25.1
243243
*/
244-
Autolinker.version = '1.6.0';
244+
Autolinker.version = '1.6.1';
245245

246246

247247
Autolinker.prototype = {

dist/Autolinker.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/Autolinker.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
22
* Autolinker.js
3-
* 1.6.0
3+
* 1.6.1
44
*
5-
* Copyright(c) 2017 Gregory Jacobs <[email protected]>
5+
* Copyright(c) 2018 Gregory Jacobs <[email protected]>
66
* MIT License
77
*
88
* https://github.com/gregjacobs/Autolinker.js
@@ -241,7 +241,7 @@ Autolinker.parse = function( textOrHtml, options ) {
241241
*
242242
* Ex: 0.25.1
243243
*/
244-
Autolinker.version = '1.6.0';
244+
Autolinker.version = '1.6.1';
245245

246246

247247
Autolinker.prototype = {
@@ -3956,7 +3956,11 @@ Autolinker.matcher.UrlMatchValidator = {
39563956
},
39573957

39583958
containsMultipleDots : function ( urlMatch ) {
3959-
return urlMatch.indexOf("..") > -1;
3959+
var stringBeforeSlash = urlMatch;
3960+
if (this.hasFullProtocolRegex.test(urlMatch)) {
3961+
stringBeforeSlash = urlMatch.split('://')[1];
3962+
}
3963+
return stringBeforeSlash.split('/')[0].indexOf("..") > -1;
39603964
},
39613965

39623966
/**

docs/dist/Autolinker.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "autolinker",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "Utility to automatically link the URLs, email addresses, phone numbers, hashtags, and mentions (Twitter, Instagram) in a given block of text/HTML",
55
"main": "dist/Autolinker.js",
66
"files": [

0 commit comments

Comments
 (0)