Fix verse parsing regex to properly handle ESV format without periods after verse numbers
This commit is contained in:
@@ -242,7 +242,7 @@ const BibleReader: React.FC<BibleReaderProps> = ({ book, chapter, onBack, format
|
||||
if (!line) continue;
|
||||
|
||||
// Check if line is a numbered verse (e.g., "1. ", "2. ", "1 ", "2 ", etc.)
|
||||
const verseMatch = line.match(/^(\d+)[\.\s]\s+(.+)$/);
|
||||
const verseMatch = line.match(/^(\d+)[\.\s]+\s*(.+)$/);
|
||||
if (verseMatch) {
|
||||
const verseNumber = verseMatch[1];
|
||||
const verseText = verseMatch[2];
|
||||
|
||||
Reference in New Issue
Block a user