Skip to content

Commit 3aadd14

Browse files
author
Steve Ayers
committed
Switch to raw string
1 parent 574bcfc commit 3aadd14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

protovalidate/internal/extra_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# See https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
2727
_email_regex = re.compile(
28-
"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
28+
r"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
2929
)
3030

3131

0 commit comments

Comments
 (0)