Bug: Strange auto formatting when creating a PR

Steps to reproduce:

  1. Make a branch with a specific name structure (feature/PCWEB-0000-...)
  2. Add two or more commits to the branch
  3. Push changes to GitHub
  4. Create a pull request
  5. Observe the auto-generated title

Expected behavior:

Title should match branch name: Feature/PCWEB-0000 ...

Observed behavior:

Title has weird capitalization and spacing: Feature/p CWE b 0000

See: Feature/p CWE b 0000 test branch name by matt-smarsh · Pull Request #1 · matt-smarsh/github-pr-branch-bug · Git