mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
ac43c19eef
Added capitalizeBook() helper function that maps user input to proper Title Case book names (Genesis, Job, 1 Samuel, etc.) to fix 404 errors when navigating to verses, chapters, or books with lowercase input. Also changed from non-greedy to greedy regex matching to properly capture multi-word book names like "1 John" and "Song of Solomon" in verse references. Fixes: - "job 1:1" now navigates to /book/Job/chapter/1/verse/1 - "1 john 3:16" works correctly - "romans 8" navigates properly - All book names properly capitalized regardless of user input case 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>