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 aeafd98 commit 2dab105Copy full SHA for 2dab105
pystac/extensions/base.py
@@ -148,7 +148,7 @@ def remove_from(cls, obj: S) -> None:
148
def has_extension(cls, obj: S) -> bool:
149
"""Check if the given object implements this extension by checking
150
:attr:`pystac.STACObject.stac_extensions` for this extension's schema URI."""
151
- schema_startswith = re.split(VERSION_REGEX, cls.get_schema_uri())[0] + "/"
+ schema_startswith = VERSION_REGEX.split(cls.get_schema_uri())[0] + "/"
152
153
return obj.stac_extensions is not None and any(
154
uri.startswith(schema_startswith) for uri in obj.stac_extensions
0 commit comments