Skip to content

Commit 89667b6

Browse files
committed
fix a regex syntax error
1 parent dca27a2 commit 89667b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numbas_lti/examparser/examparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def strcons_fix(data):
268268
out = '%i' % int(data)
269269
elif is_number(data):
270270
out = '%.14f' % float(data)
271-
out = re.sub(r'(\.\d*[1-9])0*$','\g<1>',out)
271+
out = re.sub(r'(\.\d*[1-9])0*$',r'\1',out)
272272
else:
273273
out=data
274274
return strcons(out)

0 commit comments

Comments
 (0)