3 lines · 185 B · TypeScript
RawDownload
// 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._\-/#]+$/;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t