You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of KEYS and SCAN uses fnmatch.fnmatch to match the pattern. This has a few problems:
At a minimum it should use fnmatchcase to avoid being case-insensitive on some OSes.
It does not support backslash escapes.
It uses ! instead of ^ for negated
It seems to handle invalid ranges like [e-a] differently (raises an exception, whereas redis does something unspecified I still need to work out).
It also operates by turning both arguments into native strings using the system default encoding, even though they might not be valid in that encoding.
The text was updated successfully, but these errors were encountered:
This matches the quirks in the redis pattern matching, which has some
differences from fnmatch. It also applies all the logic in bytes, rather
than the native character encoding.
Fixes#182.
The implementation of KEYS and SCAN uses
fnmatch.fnmatch
to match the pattern. This has a few problems:!
instead of^
for negated[e-a]
differently (raises an exception, whereas redis does something unspecified I still need to work out).It also operates by turning both arguments into native strings using the system default encoding, even though they might not be valid in that encoding.
The text was updated successfully, but these errors were encountered: