diff --git a/LICENSE b/LICENSE index c371fb8c8..96d8515f9 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.4.1 - 2014-03-21 +* 4chan X - Version 1.4.1 - 2014-03-22 * * Licensed under the MIT license. * https://github.com/Spittie/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 98f5fdf95..b42eb1ab7 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.4.1 - 2014-03-21 +* 4chan X - Version 1.4.1 - 2014-03-22 * * Licensed under the MIT license. * https://github.com/Spittie/4chan-x/blob/master/LICENSE @@ -8566,7 +8566,7 @@ range.setEnd(range.endContainer, range.endOffset - i); } } - if (!/(https?|mailto|git|magnet|ftp|irc):/.test(text)) { + if (!/(mailto:|.+:\/\/)/.test(text)) { text = (/@/.test(text) ? 'mailto:' : 'http://') + text; } a = $.el('a', { diff --git a/builds/crx/script.js b/builds/crx/script.js index 661285298..ec5953a36 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.4.1 - 2014-03-21 +* 4chan X - Version 1.4.1 - 2014-03-22 * * Licensed under the MIT license. * https://github.com/Spittie/4chan-x/blob/master/LICENSE @@ -8581,7 +8581,7 @@ range.setEnd(range.endContainer, range.endOffset - i); } } - if (!/(https?|mailto|git|magnet|ftp|irc):/.test(text)) { + if (!/(mailto:|.+:\/\/)/.test(text)) { text = (/@/.test(text) ? 'mailto:' : 'http://') + text; } a = $.el('a', { diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 682b33cf4..1748cbd7f 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -116,7 +116,7 @@ Linkify = range.setEnd range.endContainer, range.endOffset - i # Make our link 'valid' if it is formatted incorrectly. - unless /(https?|mailto|git|magnet|ftp|irc):/.test text + unless /(mailto:|.+:\/\/)/.test text text = ( if /@/.test text 'mailto:'