open-webui/backend/open_webui/tools
Classic298 8600b0564b
fix: use raw strings for the regex escapes in the knowledge filesystem (#29515)
The regex detection helpers wrote their backslash escapes in ordinary string
literals, so Python reported six invalid escape sequences on import. They work
today because Python leaves an unrecognised escape as its two characters, but
that behaviour is deprecated and becomes a syntax error in a future release, at
which point the knowledge filesystem tools stop importing at all.

The literals are now raw, which is the same two characters with no warning.
Pattern detection and normalisation are unchanged: verified identical output
over every string up to length five drawn from the characters these helpers
look at.
2026-09-03 14:57:25 -04:00
..
__init__.py feat: native function calling for built-in tools 2026-01-05 04:45:17 +04:00
builtin.py refac 2026-08-30 23:46:02 -04:00
knowledge_fs.py fix: use raw strings for the regex escapes in the knowledge filesystem (#29515) 2026-09-03 14:57:25 -04:00