We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c8ec8 commit 0d0a10fCopy full SHA for 0d0a10f
src/zimscraperlib/i18n.py
@@ -169,7 +169,7 @@ def get_language_details(
169
adjusted_query = query
170
native_query = query
171
query_type = "purecode"
172
- elif all(x.isalpha() or x == "-" or x == "_" for x in query) and (
+ elif all(x.isalpha() or x in ("-", "_") for x in query) and (
173
query.count("_") + query.count("-") == 1
174
):
175
# possibility of locale
0 commit comments