Style fix.
This commit is contained in:
parent
7ab2e21c10
commit
6791f205af
@ -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…
x
Reference in New Issue
Block a user