Files
open-webui/backend/open_webui
Classic298 504e724fde fix: detect bare pipe alternation as regex in grep_knowledge_files (#26795)
is_regex_pattern only recognized the BRE-escaped form \| and not a bare |,
so a pattern like "Jornak|Silverlake|Orissa" was treated as one literal
string (including the pipe characters) and silently returned no matches.
This contradicted the tool docstring, which explicitly advertises
"error|warn" as an auto-detected regex example, and misled models into
concluding the searched terms were absent from the file.

Checking for a bare | also covers the escaped form, since \| contains |,
and normalize_regex already converts escaped pipes before compilation.
Literal patterns without regex metacharacters are unaffected.

Fixes #26781
2026-07-23 23:33:35 -04:00
..
2026-07-23 13:41:16 -04:00
2026-07-23 19:17:19 -04:00
2026-07-23 21:29:33 -04:00
2026-07-23 22:20:50 -04:00
2026-07-20 22:27:13 -04:00
2026-07-23 23:16:28 -04:00
2026-06-17 03:01:11 +02:00
2026-07-23 22:44:04 -04:00
2026-06-29 05:46:51 -05:00
2026-07-23 22:52:23 -04:00
2026-07-23 03:39:56 -04:00
2026-07-16 21:57:43 -04:00