Skip to content

Commit dd5ccef

Browse files
format
1 parent a85cfdc commit dd5ccef

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

index.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -970,13 +970,12 @@ const getLoggedInUser = (): string | undefined => $('meta[name="user-login"]')?.
970970
/** Decode it and drop all redundant slashes */
971971
const 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

981980
const getCleanGistPathname = (url: URL | HTMLAnchorElement | Location = location): string | undefined => {
982981
const pathname = processPathname(url);

0 commit comments

Comments
 (0)