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-18 13:25:45 -07:00
parent 194c2bce48
commit f6866828ed
+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: