Skip to content

Commit 9182503

Browse files
committed
fix(uri): replace lstrip() with removesuffix()
* the use of `lstrip()` here was a bit too aggressive
1 parent da45d42 commit 9182503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validators/uri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def uri(value: str, /):
5858

5959
# email
6060
if value.startswith("mailto:"):
61-
return email(value.lstrip("mailto:"))
61+
return email(value.removeprefix("mailto:"))
6262

6363
# file
6464
if value.startswith("file:"):

0 commit comments

Comments
 (0)