From 06183b9947affe71a733d4a324e806863472bdcb Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Mon, 30 Oct 2023 12:22:38 -0700 Subject: Code cleanup --- src/wikiget/validations.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/wikiget/validations.py') diff --git a/src/wikiget/validations.py b/src/wikiget/validations.py index c9e7bcf..6926f06 100644 --- a/src/wikiget/validations.py +++ b/src/wikiget/validations.py @@ -43,8 +43,10 @@ def valid_site(search_string: str) -> Optional[re.Match]: """ Determines if the given string contains a valid site name, defined as a string ending with 'wikipedia.org' or 'wikimedia.org'. This covers all subdomains of those - domains. Eventually, it should be possible to support any MediaWiki site, regardless - of domain name. + domains. + + Currently unused since any site is accepted as input, and we rely on the user to + ensure the site has a compatible API. :param search_string: string to validate :type search_string: str -- cgit v1.2.3