Fixing cat and wget (thanks again to tragic0mic)
This commit is contained in:
parent
22f8950012
commit
fbb1d6ff5b
2 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,7 @@
|
|||
} else if ( dir[i].link_to && dir[i].link_to.length > 0 ) {
|
||||
return this.action ( dir[i].link_to );
|
||||
} else if ( dir[i].content ) {
|
||||
var replaced=dir[i].content.replace(/(https?:\/\/(www\.)?[0-9a-zA-Z-_\.\/:]*)/g, "<a href='$1'>$1</a>");
|
||||
var replaced=dir[i].content.replace(/(https?:\/\/(www\.)?[0-9a-zA-Z-_\.\/:\?#=&]*)/g, "<a href='$1'>$1</a>");
|
||||
replaced = replaced.replace(".'>", "'>");
|
||||
replaced = replaced.replace(".</a>", "</a>.");
|
||||
return "<pre>"+replaced+"</pre>";
|
||||
|
@ -56,3 +56,4 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
var wgetWin = window.open("_blank","");
|
||||
if(wgetWin)
|
||||
{
|
||||
wgetWin.document.write(dir[i].content);
|
||||
wgetWin.document.write("<pre>"+dir[i].content+"</pre>");
|
||||
return "<br />";
|
||||
}
|
||||
else
|
||||
|
@ -56,3 +56,4 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue