Commit 75968a9
committed
fix: support non-Latin text in InMemoryMemoryService search
Fixes #5501. `_extract_words_lower` used `[A-Za-z]+` regex which
only matched ASCII letters, silently discarding Japanese, Chinese,
Korean, Cyrillic and other non-Latin characters.
Change to `\w+` with `re.UNICODE` to match all Unicode word characters.1 parent c87ee1e commit 75968a9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments