Skip to content

Commit cd42b8c

Browse files
fix: specfinder was using an incorrect regex (#72)
Signed-off-by: Justin Abrahms <justin@abrah.ms>
1 parent b6b418b commit cd42b8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec_finder.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ def main(refresh_spec=False, diff_output=False, limit_numbers=None):
5353
with open(F) as f:
5454
data = ''.join(f.readlines())
5555

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

61+
5962
if number in missing:
6063
missing.remove(number)
6164
text_with_concat_chars = re.findall('text\s*=\s*(.*)', match)

0 commit comments

Comments
 (0)