Skip to content

Commit 7a9a5e9

Browse files
committed
Fix spec parser to work with latest changes
1 parent 8cd60e0 commit 7a9a5e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec_finder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ def main(refresh_spec=False, diff_output=False, limit_numbers=None):
5555
data = ''.join(f.readlines())
5656

5757
for match in re.findall('@Specification\((?P<innards>.*?)"\)', data.replace('\n', ''), re.MULTILINE | re.DOTALL):
58-
number = re.findall('number="(.*?)"', match)[0]
58+
number = re.findall('number\s*=\s*"(.*?)"', match)[0]
59+
5960
if number in missing:
6061
missing.remove(number)
61-
text_with_concat_chars = re.findall('text=(.*)', match)
62+
text_with_concat_chars = re.findall('text\s*=\s*(.*)', match)
6263
try:
6364
# We have to match for ") to capture text with parens inside, so we add the trailing " back in.
6465
text = _demarkdown(eval(''.join(text_with_concat_chars) + '"'))

0 commit comments

Comments
 (0)