From cfc20dd2969d40a64d5abbb6121e433968bca2d3 Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Mon, 29 Sep 2025 16:29:10 -0400 Subject: [PATCH] Update verse parsing regex to support both '1.' and '1 ' formats for verse numbering --- frontend/src/components/BibleReader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/BibleReader.tsx b/frontend/src/components/BibleReader.tsx index b2237196..884f312e 100644 --- a/frontend/src/components/BibleReader.tsx +++ b/frontend/src/components/BibleReader.tsx @@ -241,8 +241,8 @@ const BibleReader: React.FC = ({ book, chapter, onBack, format // Skip empty lines if (!line) continue; - // Check if line is a numbered verse (e.g., "1. ", "2. ", etc.) - const verseMatch = line.match(/^(\d+)\.\s+(.+)$/); + // Check if line is a numbered verse (e.g., "1. ", "2. ", "1 ", "2 ", etc.) + const verseMatch = line.match(/^(\d+)[\.\s]\s+(.+)$/); if (verseMatch) { const verseNumber = verseMatch[1]; const verseText = verseMatch[2];