Ah, the comma of doom.

This commit is contained in:
David Baker 2015-01-28 14:27:01 +00:00
parent 6741c3dbd9
commit d93ce29a86

View file

@ -101,7 +101,7 @@ class PushRuleRestServlet(ClientV1RestServlet):
if pat.strip("*?[]") == pat:
# no special glob characters so we assume the user means
# 'contains this string' rather than 'is this string'
pat = "*%s*" % (pat)
pat = "*%s*" % (pat,)
conditions = [{
'kind': 'event_match',
'key': 'content.body',