fix finalslash

This commit is contained in:
Dym Sohin 2024-06-15 12:20:16 +02:00
parent 62bead8ef6
commit e33de92fdc
1 changed files with 1 additions and 4 deletions

View File

@ -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()
)