fix finalslash
This commit is contained in:
parent
62bead8ef6
commit
e33de92fdc
|
@ -199,7 +199,6 @@ const fn_output = ( ) =>
|
||||||
u.pathname = u.pathname
|
u.pathname = u.pathname
|
||||||
.replace(/\?$/,'')
|
.replace(/\?$/,'')
|
||||||
.replace(/index\.html?$/,'')
|
.replace(/index\.html?$/,'')
|
||||||
.replace(/\/$/,'')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( chk_utm.checked )
|
if( chk_utm.checked )
|
||||||
|
@ -234,9 +233,7 @@ const fn_output = ( ) =>
|
||||||
|
|
||||||
let arr_output = arr_urls
|
let arr_output = arr_urls
|
||||||
.map( u =>
|
.map( u =>
|
||||||
( chk_nofinalslash.checked
|
( chk_nofinalslash.checked )
|
||||||
&& ( 1 == u.pathname.length )
|
|
||||||
)
|
|
||||||
? u.toString().replace( /\/$/ , '' )
|
? u.toString().replace( /\/$/ , '' )
|
||||||
: u.toString()
|
: u.toString()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue