refactor(search): reuse extract_cjk_text in _build_cjk_query

_build_cjk_query re-derived the same CJK-run extraction extract_cjk_text
already implements, despite a docstring claiming they mirror each other.
Call it directly so the mirroring is structural, not a copy to keep in sync.
This commit is contained in:
Trenton Holmes
2026-08-19 13:36:53 -07:00
committed by stumpylog
parent 90c8494c08
commit 3e1e0aefe1
+1 -1
View File
@@ -198,7 +198,7 @@ def _build_cjk_query(
matches against unrelated Latin text). Returns None when there is no CJK
text or the parse fails.
"""
cjk_text = " ".join(_CJK_RE.findall(raw_query))
cjk_text = extract_cjk_text(raw_query)
if not cjk_text:
return None
try: