mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-18 11:12:56 +00: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._\-/]+$/;
|