Skip to content

Commit 9abe48b

Browse files
committed
support for parsing RTA codes with space
1 parent 7a2df43 commit 9abe48b

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
@@ -7,7 +7,7 @@
77
DETAILED_DATE_RE = r"(?P<from>\d{2}-[a-zA-Z]{3}-\d{4})\s+to\s+(?P<to>\d{2}-[a-zA-Z]{3}-\d{4})"
88
SUMMARY_DATE_RE = r"as\s+on\s+(?P<date>\d{2}-[a-zA-Z]{3}-\d{4})"
99
SUMMARY_ROW_RE = (
10-
r"([\d/\s]+)\s+([\s\w]+)-\s*\d*\s*(.+?)\s*([\d,.]+)\s*"
10+
r"([\d/\s]+?)(?=\s.)\s+([\s\w]+)-\s*\d*\s*(.+?)\s*([\d,.]+)\s*"
1111
r"(\d{2}-[A-Za-z]{3}-\d{4})\s*([\d,.]+)\s*([\d,.]+)\s*(\w+)\s*$"
1212
)
1313
SCHEME_TAIL_RE = r"(\n.+?)\t\t"

0 commit comments

Comments
 (0)