From cd4b421cb1b3a20880c446593912a67b64dc0669 Mon Sep 17 00:00:00 2001 From: David Kane Date: Sun, 9 Jul 2023 16:21:44 +0100 Subject: [PATCH] case insensitive tag names (from https://github.com/govwiki/ixbrl-parse/commit/5d065f40b74d7aeacdfa77aea00dea7355574f3f) --- src/ixbrlparse/__about__.py | 2 +- src/ixbrlparse/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ixbrlparse/__about__.py b/src/ixbrlparse/__about__.py index 49e0fc1..a5f830a 100644 --- a/src/ixbrlparse/__about__.py +++ b/src/ixbrlparse/__about__.py @@ -1 +1 @@ -__version__ = "0.7.0" +__version__ = "0.7.1" diff --git a/src/ixbrlparse/core.py b/src/ixbrlparse/core.py index 7a45f0b..ca51d50 100644 --- a/src/ixbrlparse/core.py +++ b/src/ixbrlparse/core.py @@ -69,7 +69,7 @@ def __init__(self, soup: BeautifulSoup, raise_on_error: bool = True) -> None: # def _get_schema(self) -> None: self.schema = None - schema_tag = self.soup.find(["link:schemaRef", "schemaRef"]) + schema_tag = self.soup.find(["link:schemaRef", "schemaRef", "link:schemaref", "schemaref"]) if isinstance(schema_tag, Tag) and schema_tag.get("xlink:href"): schema = schema_tag["xlink:href"] if isinstance(schema, str):