1 /* èªåURLãªã³ã¯ãã©ã°ã¤ã³ for jQuery 2 2009.1 By KaZuhiro FuRuhata */ 3 $.fn.urlAutoLink = function(baseURL){ 4 return this.each(function(){ 5 var srcText = this.innerHTML; 6 this.innerHTML = srcText.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, "<a href='$1' target='_blank'>$1</a>"); 7 }); 8 }
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.