summaryrefslogtreecommitdiff
path: root/web/cgit-extra.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/cgit-extra.html')
-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;