fix(uri): replace `lstrip("mailto:")` with manual prefix removal by max-moser · Pull Request #418 · python-validators/validators

@max-moser changed the title fix(uri): replace lstrip() with removesuffix() fix(uri): replace lstrip() with removeprefix()

Mar 18, 2025

@max-moser max-moser changed the title fix(uri): replace lstrip() with removeprefix() fix(uri): replace lstrip("mailto:") with manual prefix removal

Mar 19, 2025

@max-moser @nandgator

* the use of `lstrip()` here was a bit too aggressive
* `removeprefix()` is only available with python 3.9+