Fix verse parsing regex to match actual markdown format (1. instead of 1 ) - this will make verse stars appear
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user