From 285f7c90eec298c8d14b68410846bcaf62ba8101 Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Sun, 11 Sep 2022 22:50:15 +0900 Subject: [PATCH] fix: add slash in DEFAULT_ESCAPED_CHARS (#312) (#376) --- aredis_om/model/token_escaper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aredis_om/model/token_escaper.py b/aredis_om/model/token_escaper.py index 9c4b556..19fce96 100644 --- a/aredis_om/model/token_escaper.py +++ b/aredis_om/model/token_escaper.py @@ -9,7 +9,7 @@ class TokenEscaper: # Characters that RediSearch requires us to escape during queries. # Source: https://redis.io/docs/stack/search/reference/escaping/#the-rules-of-text-field-tokenization - DEFAULT_ESCAPED_CHARS = r"[,.<>{}\[\]\\\"\':;!@#$%^&*()\-+=~\ ]" + DEFAULT_ESCAPED_CHARS = r"[,.<>{}\[\]\\\"\':;!@#$%^&*()\-+=~\/ ]" def __init__(self, escape_chars_re: Optional[Pattern] = None): if escape_chars_re: