From a2b19cbeb8794c849df679085e327e88a8a5fb64 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 25 Jul 2014 12:09:18 +0200 Subject: [PATCH] Remove unused jquery.linkify.min.js file --- public/js/jquery.linkify.min.js | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 public/js/jquery.linkify.min.js diff --git a/public/js/jquery.linkify.min.js b/public/js/jquery.linkify.min.js deleted file mode 100644 index b9f7b11..0000000 --- a/public/js/jquery.linkify.min.js +++ /dev/null @@ -1,4 +0,0 @@ -function linkify(string,buildHashtagUrl,includeW3,target,noFollow){relNoFollow="";if(noFollow)relNoFollow=' rel="nofollow"';string=string.replace(/((http|https|ftp)\:\/\/|\bw{3}\.)[a-z0-9\-\.]+\.[a-z]{2,3}(:[a-z0-9]*)?\/?([a-z\u00C0-\u017F0-9\-\._\?\,\'\/\\\+&%\$#\=~])*/gi,function(captured){var uri;if(captured.toLowerCase().indexOf("www.")==0){if(!includeW3)return captured;uri="http://"+captured}else uri=captured;return'"+captured+""}); -if(buildHashtagUrl)string=string.replace(/\B#(\w+)/g,"#$1");return string} -(function($){$.fn.linkify=function(opts){return this.each(function(){var $this=$(this);var buildHashtagUrl;var includeW3=true;var target="_self";var noFollow=true;if(opts)if(typeof opts=="function")buildHashtagUrl=opts;else{if(typeof opts.hashtagUrlBuilder=="function")buildHashtagUrl=opts.hashtagUrlBuilder;if(typeof opts.includeW3=="boolean")includeW3=opts.includeW3;if(typeof opts.target=="string")target=opts.target;if(typeof opts.noFollow=="boolean")noFollow=opts.noFollow}$this.html($.map($this.contents(), -function(n,i){if(n.nodeType==3)return linkify(n.data,buildHashtagUrl,includeW3,target,noFollow);else return n.outerHTML}).join(""))})}})(jQuery); \ No newline at end of file