Style fix.
This commit is contained in:
parent
7ab2e21c10
commit
6791f205af
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class StringField(BaseField):
|
|||
regex = r'%s$'
|
||||
elif op == 'exact':
|
||||
regex = r'^%s$'
|
||||
|
||||
|
||||
# escape unsafe characters which could lead to a re.error
|
||||
value = re.escape(value)
|
||||
value = re.compile(regex % value, flags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue