bug fixing

This commit is contained in:
David Halter
2012-04-18 21:41:51 +02:00
parent ff7f774dc6
commit 0048eb65c4
8 changed files with 25 additions and 20 deletions

View File

@@ -49,7 +49,7 @@ def completion_test(source):
tests += 1
else:
try:
correct = re.search(r'#\?\s*([^\n]+)', line).group(1)
correct = re.search(r'(?:^|\s)#\?\s*([^\n]+)', line).group(1)
except:
correct = None
return tests, fails