reactions: Fix support for "+1" emoji.

Previously, we didn't allow the `+1` character in the URL pattern.
This commit is contained in:
Tim Abbott 2016-12-30 21:42:24 -08:00
parent a61386cbbc
commit 965a22e2bd
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ v1_api_and_json_patterns = [
# reactions -> zerver.view.reactions
# PUT adds a reaction to a message
# DELETE removes a reaction from a message
url(r'^messages/(?P<message_id>[0-9]+)/emoji_reactions/(?P<emoji_name>[0-9a-zA-Z.\-_]+(?<![.\-_]))$',
url(r'^messages/(?P<message_id>[0-9]+)/emoji_reactions/(?P<emoji_name>[+0-9a-zA-Z.\-_]+(?<![.\-_]))$',
rest_dispatch,
{'PUT': 'zerver.views.reactions.add_reaction_backend',
'DELETE': 'zerver.views.reactions.remove_reaction_backend'}),