We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c4ff74 commit eee15fcCopy full SHA for eee15fc
1 file changed
src/google/adk/memory/in_memory_memory_service.py
@@ -38,8 +38,8 @@ def _user_key(app_name: str, user_id: str) -> str:
38
39
40
def _extract_words_lower(text: str) -> set[str]:
41
- """Extracts words from a string and converts them to lowercase."""
42
- return set([word.lower() for word in re.findall(r'[A-Za-z]+', text)])
+ """Extracts words from a string and converts them to lowercase, supporting Unicode."""
+ return set([word.lower() for word in re.findall(r'\w+', text, re.UNICODE)])
43
44
45
class InMemoryMemoryService(BaseMemoryService):
0 commit comments