Skip to content
Snippets Groups Projects
Commit e6c4974f authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Fix missing parenthesis in beautified hint.

parent 99b52000
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class Possibility(object):
# lambda is necessary otherwise because \1 and \2 are not matched
# both at the same time.
add_backticks = lambda x: '`%s`' % ''.join(x.groups(''))
msg = re.sub('`([^`]*)`|\(?({[^. ]+)', add_backticks, msg)
msg = re.sub('`([^`]*)`|(\(?{[^. ]+)', add_backticks, msg)
return msg.format(self.root, *self.args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment