Fix Scripture Index doubled/unparseable refs, Titus passage fetch 400, Ko-fi QR 404, auto-load study comments; stop probe URLs inflating Real Hits, real 404 status for unknown URLs; v2.43.1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-15 11:30:05 -04:00
1 parent 09177f47ed
commit 6a5d525d6e
10 files changed
+59 -10

No files matched your search

+4 -2
View File
@@ -662,7 +662,7 @@ function KofiSupportSection({ content }: { content: SiteContent }) {
</div>
{qrUrl && (
<figure className="cx-support-qr">
<img src={qrUrl} alt="Ko-fi donation QR code" />
<img src={qrUrl} alt="Ko-fi donation QR code" onError={e => { const fig = e.currentTarget.parentElement; if (fig) fig.style.display = 'none' }} />
<figcaption>Scan to give on Ko-fi</figcaption>
</figure>
)}
@@ -2655,7 +2655,9 @@ for (const b of BIBLE_BOOKS) {
function parseSIRef(ref: string) {
// Supports same-chapter ranges ("5:15-20") and chapter-spanning ranges ("5:15-6:2").
const m = ref.match(/^(.*?)\s+(\d+):(\d+)(?:-(?:(\d+):)?(\d+))?$/)
// Tolerate en/em dashes and verse-part suffixes like "10-12a"
const clean = ref.replace(/[\u2013\u2014]/g, '-').replace(/(\d)[a-z]\b/gi, '$1').trim()
const m = clean.match(/^(.*?)\s+(\d+):(\d+)(?:-(?:(\d+):)?(\d+))?$/)
if (!m) return null
const bookId = SI_BOOK_MAP[m[1].toLowerCase().replace(/\.\s*/g, ' ').trim()]
if (!bookId) return null