parent
551429c01a
commit
285f7c90ee
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class TokenEscaper:
|
||||||
|
|
||||||
# Characters that RediSearch requires us to escape during queries.
|
# Characters that RediSearch requires us to escape during queries.
|
||||||
# Source: https://redis.io/docs/stack/search/reference/escaping/#the-rules-of-text-field-tokenization
|
# 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):
|
def __init__(self, escape_chars_re: Optional[Pattern] = None):
|
||||||
if escape_chars_re:
|
if escape_chars_re:
|
||||||
|
|
Loading…
Reference in a new issue