We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lstrip()
removeprefix()
1 parent da45d42 commit dbd9946Copy full SHA for dbd9946
src/validators/uri.py
@@ -58,7 +58,7 @@ def uri(value: str, /):
58
59
# email
60
if value.startswith("mailto:"):
61
- return email(value.lstrip("mailto:"))
+ return email(value.removeprefix("mailto:"))
62
63
# file
64
if value.startswith("file:"):
0 commit comments