diff options
author | Neil Moore <neil@s-z.org> | 2012-06-27 01:49:03 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-06-27 01:49:03 -0500 |
commit | 9ec1db5ec441f92830ff2e9f97e78d0710cda0f6 (patch) | |
tree | 274b1893c6641050665b7ab2f105754d4054b4f9 /dat | |
parent | 1b12a9b9d996f44ea0af83984234cf355f83c183 (diff) | |
download | crawlbot-9ec1db5ec441f92830ff2e9f97e78d0710cda0f6.tar.gz crawlbot-9ec1db5ec441f92830ff2e9f97e78d0710cda0f6.zip |
Be more careful about matching day headers.
Diffstat (limited to 'dat')
-rw-r--r-- | dat/log/.logview.shtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dat/log/.logview.shtml b/dat/log/.logview.shtml index 079a2a3..7644feb 100644 --- a/dat/log/.logview.shtml +++ b/dat/log/.logview.shtml @@ -26,7 +26,7 @@ wensley = function(logurl, args) { data = data.replace(/\cO/g, ''); // Search headers - data = data.replace(/(\d+ match(?:es)? in )##(.*):/g, '<h3>$1<a onclick="wensley(\'%23%23$2\', {})" href="#">##$2</a>:</h3>'); + data = data.replace(/^(\d+ match(?:es)? in )##(.*):$/mg, '<h3>$1<a onclick="wensley(\'%23%23$2\', {})" href="#">##$2</a>:</h3>'); data = data.replace(/\n/g, "<br>"); $('div#stuff').html('<h2>Wensley is so awesome</h2><a href="#files">Jump to list of logs</a> | <a href="#" onclick="wensleyclear()">Close log</a><div class="irc">' + data + '</div>'); |