mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-16 04:35:24 +02:00
- Introduced a regex validation for branch names in Bitbucket, Git, Gitea, GitHub, and GitLab provider schemas to ensure valid branch formats. - Updated the corresponding schemas to include the new validation rule, enhancing input integrity and preventing potential errors. - Added a utility for branch validation in the server utils.
4 lines
184 B
TypeScript
4 lines
184 B
TypeScript
// Valid git branch names per git-check-ref-format rules.
|
|
// Rejects shell metacharacters that would enable command injection.
|
|
export const VALID_BRANCH_REGEX = /^[a-zA-Z0-9._\-/]+$/;
|