]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Fix type: endsWith => endswith
authornathan-williams <nathan.le.williams@gmail.com>
Fri, 19 Jul 2024 16:07:14 +0000 (12:07 -0400)
committernathan-williams <nathan.le.williams@gmail.com>
Fri, 19 Jul 2024 16:07:14 +0000 (12:07 -0400)
tests/test_data_languages.py

index f206ef83654fddeae05a53d4500b74e8dc6ba537..4e347dd9b47a6e9106bca8594e69d37c3f8d6fb0 100644 (file)
@@ -298,7 +298,7 @@ def test_language_name_structure():
         for type, name in names:
             bad_structure = not re.match(LANGUAGE_NAME_REGEX, name)
             bad_script_suffix = name.endswith(
-                ")") and not name.endsWith(f"({script_name})")
+                ")") and not name.endswith(f"({script_name})")
             if bad_structure or bad_script_suffix:
                 bad_names.append(type)
         if len(bad_names) > 0: