Skip to content

Commit 08ba922

Browse files
committed
Fix an error in the RE of the parser
1 parent 2284b81 commit 08ba922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arpa/parsers/quick.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class State(Enum):
1818
re_entry = re.compile('^(-?\\d+(\\.\\d+)?([eE]-?\\d+)?)'
1919
'\t'
2020
'(\\S+( \\S+)*)'
21-
'(\t(-?\\d+(\\.\\d+)?)([eE]-?\\d+)?)?$')
21+
'(\t((-?\\d+(\\.\\d+)?)([eE]-?\\d+)?))?$')
2222

2323
def __init__(self, model):
2424
self.ModelClass = model

0 commit comments

Comments
 (0)