diff --git a/src/utils/repo-path.ts b/src/utils/repo-path.ts index 22330d275..9c40deb37 100644 --- a/src/utils/repo-path.ts +++ b/src/utils/repo-path.ts @@ -1,6 +1,6 @@ export const MAX_REPO_PATH_LENGTH = 512 -const REPO_PATH_SEGMENT_PATTERN = /^[a-zA-Z0-9._$+-]+$/ +const REPO_PATH_SEGMENT_PATTERN = /^[a-zA-Z0-9._$+\-\[\]()]+$/ export function isValidRepoPath(path: string) { if (path === '') {