strip whitespace from clan uris
This commit is contained in:
@@ -41,6 +41,8 @@ class ClanParameters:
|
|||||||
class ClanURI:
|
class ClanURI:
|
||||||
# Initialize the class with a clan:// URI
|
# Initialize the class with a clan:// URI
|
||||||
def __init__(self, uri: str) -> None:
|
def __init__(self, uri: str) -> None:
|
||||||
|
# users might copy whitespace along with the uri
|
||||||
|
uri = uri.strip()
|
||||||
self._full_uri = uri
|
self._full_uri = uri
|
||||||
# Check if the URI starts with clan://
|
# Check if the URI starts with clan://
|
||||||
if uri.startswith("clan://"):
|
if uri.startswith("clan://"):
|
||||||
|
|||||||
Reference in New Issue
Block a user