Skip to content

Commit 7bd34a1

Browse files
author
Benjamin Moody
committed
Permit '-' in segment names.
1 parent 916ec90 commit 7bd34a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
)
120120

121121
# Segment line
122-
_rx_segment = re.compile('(?P<seg_name>\w*~?)[ \t]+(?P<seg_len>\d+)')
122+
_rx_segment = re.compile('(?P<seg_name>[-\w]*~?)[ \t]+(?P<seg_len>\d+)')
123123

124124

125125
class BaseHeaderMixin(object):

0 commit comments

Comments
 (0)