mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-19 01:03:18 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user