Skip to content

Commit 4bc3607

Browse files
committed
expand org regex
1 parent 3402296 commit 4bc3607

File tree

2 files changed

+195
-12
lines changed

2 files changed

+195
-12
lines changed

src/getCurrentConnectionInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const getCurrentConnectionInfo = (
2727
window: Window
2828
): ConnectionInfo | null => {
2929
const publicOrgMatch = window.location.pathname.match(
30-
/^\/o\/([a-z]+)\/([0-9]+|demo)(?:\/(.*))?$/
30+
/^\/o\/([a-z0-9-]+)\/([0-9]+|demo)(?:\/(.*))?$/
3131
);
3232
const personalOrgMatch = window.location.pathname.match(
3333
/^\/u\/([0-9]+|demo)(?:\/(.*))?$/

0 commit comments

Comments
 (0)