From 341db13a008dc12bb22ceb50452d93d01476308c Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Feb 2026 01:58:44 +0100 Subject: finish parser, remove logs --- web/cgit-extra.html | 11 +---------- 1 file changed, 1 insertion(+), 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() === "" ) return "<"; if( s === '<' ) { - console.log( s, i, str.slice( i, i + 7 ), str.slice( i, i + 7 ) == "", str.slice( i, i + 6 ) == "" ); if( str.slice( i, i + 6 ).toLowerCase() === "" || str.slice( i, i + 7 ).toLowerCase() === "" ) { - console.log( "yes" ); return "<"; } } if( s === '>' ) { - console.log( s, i, str.slice( i - 6, i + 1 ), str.slice( i - 6, i + 1 ) == "", str.slice( i - 5, i + 1 ) == "" ); - if( str.slice( i - 5, i + 1 ).toLowerCase() === "" + if( str.slice( i - 5, i + 1 ).toLowerCase() === "" || str.slice( i - 6, i + 1 ).toLowerCase() === "" ) { - console.log( "yes" ); return ">"; } } if( s === '/' ) { - console.log( s, i, str.slice( i - 1, i + 6 ) ); if( str.slice( i - 1, i + 6 ).toLowerCase() === "" ) { - 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; -- cgit v1.2.3