File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
site/src/modules/dashboard/DeploymentBanner Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,13 @@ import { useLocation } from "react-router-dom";
7
7
import { DeploymentBannerView } from "./DeploymentBannerView" ;
8
8
9
9
const HIDE_DEPLOYMENT_BANNER_PATHS = [
10
- // Workspace page.
11
- // Hide the banner on workspace page because it already has a lot of information.
12
- / ^ \/ @ [ ^ \/ ] + \/ [ ^ \/ ] + $ / ,
10
+ // Hide the banner on workspace page because it already has a lot of
11
+ // information.
12
+ // - It adds names to the main groups that we're checking for, so it'll be a
13
+ // little more self-documenting
14
+ // - It redefines each group to only allow the characters A-Z (lowercase or
15
+ // uppercase), numbers, and hyphens
16
+ / ^ \/ @ (?< username > [ a - z A - Z 0 - 9 - ] + ) \/ (?< workspace_name > [ a - z A - Z 0 - 9 - ] + ) $ / ,
13
17
] ;
14
18
15
19
export const DeploymentBanner : FC = ( ) => {
You can’t perform that action at this time.
0 commit comments