From 64e77fb40e72b1f10d148ae8bb5bfc0d03b2dc26 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Thu, 28 May 2026 13:04:26 -0400 Subject: [PATCH] Clean up English word display in suggest modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Strip Strong's X/+ notation prefixes and take the first meaningful English word from the comma-separated kjv_def — so G2316 shows "God" instead of "exceeding", G40 shows "holy" instead of "(most) holy (one", etc. Falls back to the raw def if all segments are filtered. Co-Authored-By: Claude Sonnet 4.6 --- src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index bcf13ca..411f0a8 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -2159,7 +2159,7 @@ const restoreRemoteProject = async (id) => { />
- {w.def || w.strongKey} + {(w.def ? (w.def.split(',').map(s => s.trim()).filter(s => !s.startsWith('X ') && !s.startsWith('+ ')).map(s => s.replace(/^[\s()\-]+/, '').trim()).find(s => s.length > 0) || w.def.split(',')[0].trim()) : w.strongKey)} {w.lexeme} {w.translit && {w.translit}} {w.strongKey}