From ac43c19eef99e1bf4b0a3165f30fe05b946f6ca7 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 22 Nov 2025 00:06:47 -0500 Subject: [PATCH] Fix verse navigation with proper book name capitalization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- kjvstudy_org/templates/index.html | 37 ++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/kjvstudy_org/templates/index.html b/kjvstudy_org/templates/index.html index 1adb436..31ef403 100644 --- a/kjvstudy_org/templates/index.html +++ b/kjvstudy_org/templates/index.html @@ -190,6 +190,31 @@ section a[href^="/book/"] {