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()
removesuffix()
1 parent da45d42 commit 9182503Copy full SHA for 9182503
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