summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-17 01:58:44 +0100
committeraura <nw@moneybot.cc>2026-02-17 01:58:44 +0100
commit341db13a008dc12bb22ceb50452d93d01476308c (patch)
tree0a49e8a953adc2bd2abf12a7ae0b027b4149d12e /web
parent66114aff1fc110d39d279ef820144a051cd7fb04 (diff)
finish parser, remove logsHEADmaster
Diffstat (limited to 'web')
-rw-r--r--web/cgit-extra.html11
1 files changed, 1 insertions, 10 deletions
diff --git a/web/cgit-extra.html b/web/cgit-extra.html
index 927c912..cb30b54 100644
--- a/web/cgit-extra.html
+++ b/web/cgit-extra.html
@@ -147,27 +147,21 @@ function escapeHtml( html ) {
return String( html ).replace( /[&<>"'`=\/]/g, ( s, i, str ) => {
if( str.slice( i, i + 6 ).toLowerCase() === "<code>" ) return "<";
if( s === '<' ) {
- console.log( s, i, str.slice( i, i + 7 ), str.slice( i, i + 7 ) == "</code>", str.slice( i, i + 6 ) == "<code>" );
if( str.slice( i, i + 6 ).toLowerCase() === "<code>"
|| str.slice( i, i + 7 ).toLowerCase() === "</code>" ) {
- console.log( "yes" );
return "<";
}
}
if( s === '>' ) {
- console.log( s, i, str.slice( i - 6, i + 1 ), str.slice( i - 6, i + 1 ) == "</code>", str.slice( i - 5, i + 1 ) == "<code>" );
- if( str.slice( i - 5, i + 1 ).toLowerCase() === "<code>"
+ if( str.slice( i - 5, i + 1 ).toLowerCase() === "<code>"
|| str.slice( i - 6, i + 1 ).toLowerCase() === "</code>" ) {
- console.log( "yes" );
return ">";
}
}
if( s === '/' ) {
- console.log( s, i, str.slice( i - 1, i + 6 ) );
if( str.slice( i - 1, i + 6 ).toLowerCase() === "</code>" ) {
- console.log( "yes" );
return "/";
}
}
@@ -196,8 +190,6 @@ function replaceCodeTicks( text ) {
inBlock = !inBlock;
}
- console.log( escapeHtml( text ) );
-
return escapeHtml( text );
}
@@ -236,7 +228,6 @@ function createReadme( text, isMd ) {
let insertTarget = tbody.children[3];
for( let i = 2; i < tbody.children.length; ++i ) {
- console.log( tbody.children[i].classList );
if( tbody.children[i-1].classList.contains( "nohover" ) ) {
insertTarget = tbody.children[i];
break;