Skip to content

Commit

Permalink
v0.7.4 - fix scheme name parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
codereverser committed Oct 7, 2023
1 parent ecab87c commit 9125c52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion casparser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"CapitalGainsReport",
]

__version__ = "0.7.3"
__version__ = "0.7.4"
2 changes: 1 addition & 1 deletion casparser/process/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
NOMINEE_RE = r"\s*Nominee\s+[1-3]\s*:\s*(.*?)" * 3 + r"$"

SCHEME_RE = (
r"(?P<code>[\s\w]+-*[gdp]?)-\s*\d*\s*(?P<name>.+?)(?:\t\t|\(|ISIN).*?"
r"(?P<code>[\s\w]+-*[gdp]?)-\s*\d*\s*(?P<name>.+?)(?:\t\t|\(\s*Advis|ISIN).*?"
r"Registrar\s*:\s*(?P<rta>.*)\s*$"
)
SCHEME_KV_RE = r"""(\w+)\s*:\s*([-\w]+)"""
Expand Down

0 comments on commit 9125c52

Please sign in to comment.