diff --git a/CHANGELOG.md b/CHANGELOG.md index 392a13a..48e9ef0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.7.4 - 2023-10-04 +- (fix) fix broken scheme names + ## 0.7.3 - 2023-09-26 - (new) Add support for parsing nominee details (available in `Folio.nominees`) - (fix) fix empty PAN in certain cases diff --git a/casparser/__init__.py b/casparser/__init__.py index 58706b3..fedbff9 100644 --- a/casparser/__init__.py +++ b/casparser/__init__.py @@ -9,4 +9,4 @@ "CapitalGainsReport", ] -__version__ = "0.7.3" +__version__ = "0.7.4" diff --git a/casparser/process/regex.py b/casparser/process/regex.py index 75adb26..3cbe666 100644 --- a/casparser/process/regex.py +++ b/casparser/process/regex.py @@ -23,7 +23,7 @@ NOMINEE_RE = r"\s*Nominee\s+[1-3]\s*:\s*(.*?)" * 3 + r"$" SCHEME_RE = ( - r"(?P[\s\w]+-*[gdp]?)-\s*\d*\s*(?P.+?)(?:\t\t|\(|ISIN).*?" + r"(?P[\s\w]+-*[gdp]?)-\s*\d*\s*(?P.+?)(?:\t\t|\(\s*Advis|ISIN).*?" r"Registrar\s*:\s*(?P.*)\s*$" ) SCHEME_KV_RE = r"""(\w+)\s*:\s*([-\w]+)"""