pub const BRANCH_GRAMMAR: &str = r"^((build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)/[A-Za-z0-9._/-]+|([0-9]+|[A-Z][A-Z0-9]+-[0-9]+)-[A-Za-z0-9._-]+|release[-/].+)$";Expand description
The one branch grammar.
The extended regular expression the landed
rk-branch-name hook tests, and the same anchored language
rk worktree add validates before creating anything. One owner by
token — concat! cannot interpolate a const, so hooks_block
substitutes it for the template’s RK_BRANCH_GRAMMAR token.