aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/validations.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-10-30 12:22:38 -0700
committerCody Logan <cody@lokken.dev>2023-10-30 12:22:38 -0700
commit06183b9947affe71a733d4a324e806863472bdcb (patch)
tree0f08e9791518c0678d2058818bc21545e06bf9b8 /src/wikiget/validations.py
parent33cab465618c7a82a5d318a18838aab7c9ec9e68 (diff)
downloadwikiget-06183b9947affe71a733d4a324e806863472bdcb.tar.gz
wikiget-06183b9947affe71a733d4a324e806863472bdcb.zip
Code cleanup
Diffstat (limited to 'src/wikiget/validations.py')
-rw-r--r--src/wikiget/validations.py6
1 files changed, 4 insertions, 2 deletions
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