use six.u
This commit is contained in:
parent
41371e5fc5
commit
33e50e48c1
@ -164,12 +164,13 @@ class EmailField(StringField):
|
|||||||
)
|
)
|
||||||
|
|
||||||
UTF8_USER_REGEX = re.compile(
|
UTF8_USER_REGEX = re.compile(
|
||||||
# RFC 6531 Section 3.3 extends `atext` (used by dot-atom) to include
|
six.u(
|
||||||
# `UTF8-non-ascii`.
|
# RFC 6531 Section 3.3 extends `atext` (used by dot-atom) to
|
||||||
ur"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z\u0080-\U0010FFFF]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z\u0080-\U0010FFFF]+)*\Z"
|
# include `UTF8-non-ascii`.
|
||||||
# `quoted-string`
|
r"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z\u0080-\U0010FFFF]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z\u0080-\U0010FFFF]+)*\Z"
|
||||||
ur'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*"\Z)',
|
# `quoted-string`
|
||||||
re.IGNORECASE | re.UNICODE
|
r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*"\Z)'
|
||||||
|
), re.IGNORECASE | re.UNICODE
|
||||||
)
|
)
|
||||||
|
|
||||||
DOMAIN_REGEX = re.compile(
|
DOMAIN_REGEX = re.compile(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user