Commit a0040fb5 authored by Ryan Herbert's avatar Ryan Herbert
Browse files strip preceding and trailing spaces from id strings

At.js will add a trailing space to input after inserting the completed
text. It also makes sense from a rousbtness standpoint, should a user
accidentally add any preceding or trailing whitespace, the controller
will not fail.
parent aec165d0
......@@ -17,7 +17,7 @@ if request.env.http_origin:
def extract_id(target, error):
id = int(target.split('(')[-1][:-1])
id = int(target.strip().split('(')[-1][:-1])
return id
raise ValueError('invalid input %s' % target)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment