update changelog with recent changes that were merged
This commit is contained in:
parent
8c3e2b340b
commit
686b42c29b
@ -10,6 +10,7 @@ Development
|
|||||||
- EnumField improvements: now `choices` limits the values of an enum to allow
|
- EnumField improvements: now `choices` limits the values of an enum to allow
|
||||||
- Fix deepcopy of EmbeddedDocument #2202
|
- Fix deepcopy of EmbeddedDocument #2202
|
||||||
- Fix error when using precision=0 with DecimalField #2535
|
- Fix error when using precision=0 with DecimalField #2535
|
||||||
|
- Add support for regex and whole word text search query #2568
|
||||||
|
|
||||||
Changes in 0.23.1
|
Changes in 0.23.1
|
||||||
===========
|
===========
|
||||||
|
@ -162,10 +162,10 @@ class StringField(BaseField):
|
|||||||
elif op == "regex":
|
elif op == "regex":
|
||||||
regex = value
|
regex = value
|
||||||
|
|
||||||
# escape unsafe characters which could lead to a re.error
|
|
||||||
if op == "regex":
|
if op == "regex":
|
||||||
value = re.compile(regex, flags)
|
value = re.compile(regex, flags)
|
||||||
else:
|
else:
|
||||||
|
# escape unsafe characters which could lead to a re.error
|
||||||
value = re.escape(value)
|
value = re.escape(value)
|
||||||
value = re.compile(regex % value, flags)
|
value = re.compile(regex % value, flags)
|
||||||
return super().prepare_query_value(op, value)
|
return super().prepare_query_value(op, value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user