Skip to content

Commit 4ebca1a

Browse files
authored
Update SCHEME_RE to capture non-space RTA Codes
1 parent fbbdf7f commit 4ebca1a

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)