Fix verse parsing regex to match actual markdown format (1. instead of 1 ) - this will make verse stars appear

This commit is contained in:
Ryderjj89
2025-09-14 11:45:25 -04:00
parent 1fe9dc9c9c
commit 681a724e8e

View File

@@ -213,8 +213,8 @@ const BibleReader: React.FC<BibleReaderProps> = ({ book, chapter, onBack, format
// Skip empty lines
if (!line) continue;
// Check if line starts with verse number (e.g., "1 ", "2 ", etc.)
const verseMatch = line.match(/^(\d+)\s+(.+)$/);
// Check if line starts with verse number (e.g., "1. ", "2. ", etc.)
const verseMatch = line.match(/^(\d+)\.\s+(.+)$/);
if (verseMatch) {
const verseNumber = verseMatch[1];
const verseText = verseMatch[2];