From e33de92fdc2315169d1d021c5a10d44f75ab7547 Mon Sep 17 00:00:00 2001 From: Dym Sohin Date: Sat, 15 Jun 2024 12:20:16 +0200 Subject: [PATCH] fix finalslash --- index.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.html b/index.html index 429fde4..1010930 100644 --- a/index.html +++ b/index.html @@ -199,7 +199,6 @@ const fn_output = ( ) => u.pathname = u.pathname .replace(/\?$/,'') .replace(/index\.html?$/,'') - .replace(/\/$/,'') } if( chk_utm.checked ) @@ -234,9 +233,7 @@ const fn_output = ( ) => let arr_output = arr_urls .map( u => - ( chk_nofinalslash.checked - && ( 1 == u.pathname.length ) - ) + ( chk_nofinalslash.checked ) ? u.toString().replace( /\/$/ , '' ) : u.toString() )