From 7a9a5e940f31383e1679b633f6e98a21d56c2f65 Mon Sep 17 00:00:00 2001 From: Justin Abrahms Date: Mon, 20 Jun 2022 18:48:04 -0500 Subject: [PATCH] Fix spec parser to work with latest changes --- spec_finder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec_finder.py b/spec_finder.py index 58caced3..ba565e57 100644 --- a/spec_finder.py +++ b/spec_finder.py @@ -55,10 +55,11 @@ def main(refresh_spec=False, diff_output=False, limit_numbers=None): data = ''.join(f.readlines()) for match in re.findall('@Specification\((?P.*?)"\)', data.replace('\n', ''), re.MULTILINE | re.DOTALL): - number = re.findall('number="(.*?)"', match)[0] + number = re.findall('number\s*=\s*"(.*?)"', match)[0] + if number in missing: missing.remove(number) - text_with_concat_chars = re.findall('text=(.*)', match) + text_with_concat_chars = re.findall('text\s*=\s*(.*)', match) try: # We have to match for ") to capture text with parens inside, so we add the trailing " back in. text = _demarkdown(eval(''.join(text_with_concat_chars) + '"'))