civics-cdf-validator 1.43.dev8__tar.gz → 1.43.dev10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {civics_cdf_validator-1.43.dev8/civics_cdf_validator.egg-info → civics_cdf_validator-1.43.dev10}/PKG-INFO +1 -1
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/rules.py +4 -3
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/version.py +1 -1
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/CONTRIBUTING.md +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/MANIFEST.in +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/README.md +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/__init__.py +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/base.py +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/civics_cdf_validator.egg-info/requires.txt +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/civics_cdf_validator.egg-info/top_level.txt +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/gpunit_rules.py +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/loggers.py +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/office_utils.py +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/setup.cfg +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/setup.py +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/stats.py +0 -0
- {civics_cdf_validator-1.43.dev8 → civics_cdf_validator-1.43.dev10}/validator.py +0 -0
|
@@ -192,8 +192,8 @@ def element_has_text(element):
|
|
|
192
192
|
def country_code_is_valid(country_code):
|
|
193
193
|
# EU is part of ISO 3166/MA
|
|
194
194
|
return (
|
|
195
|
-
country_code == "eu"
|
|
196
|
-
or pycountry.countries.get(alpha_2=country_code) is not None
|
|
195
|
+
country_code.lower() == "eu"
|
|
196
|
+
or pycountry.countries.get(alpha_2=country_code.upper()) is not None
|
|
197
197
|
)
|
|
198
198
|
|
|
199
199
|
|
|
@@ -2100,7 +2100,8 @@ class ValidURIAnnotation(base.BaseRule):
|
|
|
2100
2100
|
parsed_url = urlparse(url)
|
|
2101
2101
|
# Ensure media platform name is in URL.
|
|
2102
2102
|
if (platform != "website" and platform not in parsed_url.netloc and
|
|
2103
|
-
not (platform == "facebook" and "fb.com" in parsed_url.netloc)
|
|
2103
|
+
not (platform == "facebook" and "fb.com" in parsed_url.netloc) and
|
|
2104
|
+
not (platform == "twitter" and "x.com" in parsed_url.netloc)):
|
|
2104
2105
|
# Note that the URL is encoded for printing purposes
|
|
2105
2106
|
raise loggers.ElectionError.from_message(
|
|
2106
2107
|
"Annotation '{}' is incorrect for URI {}.".format(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|