Skip to content

Commit

Permalink
Fix specfinder
Browse files Browse the repository at this point in the history
We had an erroneus quote in there which was breaking the regex

Signed-off-by: Justin Abrahms <justin@abrah.ms>
  • Loading branch information
justinabrahms committed Apr 15, 2024
1 parent b6b418b commit 7f9f626
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ def main(refresh_spec=False, diff_output=False, limit_numbers=None):
with open(F) as f:
data = ''.join(f.readlines())

for match in re.findall('#\[spec\((?P<innards>.*?)"\)\]', data.replace('\n', ''), re.MULTILINE | re.DOTALL):
# if "#[spec" in data:
# import pdb; pdb.set_trace()
for match in re.findall('#\[spec\((?P<innards>.*?)\)\]', data.replace('\n', ''), re.MULTILINE | re.DOTALL):
number = re.findall('number\s*=\s*"(.*?)"', match)[0]


if number in missing:
missing.remove(number)
text_with_concat_chars = re.findall('text\s*=\s*(.*)', match)
Expand Down

0 comments on commit 7f9f626

Please sign in to comment.