diff --git a/commands/cat.json b/commands/cat.json index 5916f59..771eb2d 100644 --- a/commands/cat.json +++ b/commands/cat.json @@ -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, "$1"); + var replaced=dir[i].content.replace(/(https?:\/\/(www\.)?[0-9a-zA-Z-_\.\/:\?#=&]*)/g, "$1"); replaced = replaced.replace(".'>", "'>"); replaced = replaced.replace(".", "."); return "
"+replaced+"
"; @@ -56,3 +56,4 @@ } } + diff --git a/commands/wget.json b/commands/wget.json index 4e041e7..9d431ea 100644 --- a/commands/wget.json +++ b/commands/wget.json @@ -33,7 +33,7 @@ var wgetWin = window.open("_blank",""); if(wgetWin) { - wgetWin.document.write(dir[i].content); + wgetWin.document.write("
"+dir[i].content+"
"); return "
"; } else @@ -56,3 +56,4 @@ } } +