def get_year(self, filing_details: str) -> str:
        """
        Get the year for 10-K and year,month for 10-Q.

        Args:
            filing_details (str): filing url

        Returns:
            str: year for 10-K and year,month for 10-Q

        """
        details = filing_details.split("/")[-1]
        if self.filing_type == "10-K":
            matches = re.findall("20\\d{2}", details)
        elif self.filing_type == "10-Q":
            matches = re.findall("20\\d{4}", details)

        if matches:
            return matches[-1]  # Return the first match
        else:
            return None  # In case no match is found

        Get the year for 10-K and year,month for 10-Q.

        Args:
            filing_details (str): filing url

        Returns:
            str: year for 10-K and year,month for 10-Q

        
llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/sec_filings.py