File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -970,13 +970,12 @@ const getLoggedInUser = (): string | undefined => $('meta[name="user-login"]')?.
970970/** Decode it and drop all redundant slashes */
971971const processPathname = ( url : URL | HTMLAnchorElement | Location = location ) : string =>
972972 url . pathname
973- . split ( "/" )
974- . map ( ( part ) => decodeURIComponent ( part ) )
975- . join ( '/' )
976- . replaceAll ( / \/ \/ + / g, "/" )
977- . replace ( / \/ $ / , "" )
978- . slice ( 1 ) ;
979-
973+ . split ( '/' )
974+ . map ( part => decodeURIComponent ( part ) )
975+ . join ( '/' )
976+ . replaceAll ( / \/ \/ + / g, '/' )
977+ . replace ( / \/ $ / , '' )
978+ . slice ( 1 ) ;
980979
981980const getCleanGistPathname = ( url : URL | HTMLAnchorElement | Location = location ) : string | undefined => {
982981 const pathname = processPathname ( url ) ;
You can’t perform that action at this time.
0 commit comments