Skip to content

Commit

Permalink
fix: specfinder was using an incorrect regex (#72)
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Abrahms <justin@abrah.ms>
  • Loading branch information
justinabrahms committed Apr 20, 2024
1 parent b6b418b commit eb4ba39
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 eb4ba39

Please sign in to comment.