Skip to content

Commit 42aa4cb

Browse files
authored
Merge pull request #112 from Avi-Sh/fixes/scheme_regex_update
Update `SCHEME_RE` to capture non-space RTA Codes
2 parents fbbdf7f + 4ebca1a commit 42aa4cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

casparser/process/regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
SCHEME_RE = (
2626
r"(?P<code>[\s\w]+-*[gdp]?)-\s*\d*\s*(?P<name>.+?)(?:\t\t|\(\s*Advis|ISIN).*?"
27-
r"Registrar\s*:\s*(?P<rta>.*)\s*$"
27+
r"Registrar\s*:\s*(?P<rta>[^\s]*).*$"
2828
)
2929
SCHEME_KV_RE = r"""(\w+)\s*:\s*([-\w]+)"""
3030

0 commit comments

Comments
 (0)