From 39178b30940765b7082be17ce4c475236ce8a1fa Mon Sep 17 00:00:00 2001 From: Nhan Ho Date: Mon, 10 Oct 2016 13:41:02 +0700 Subject: [PATCH] Fix regex in color --- screeps_loan/routes/my_alliance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screeps_loan/routes/my_alliance.py b/screeps_loan/routes/my_alliance.py index ed065f9..6b5d015 100644 --- a/screeps_loan/routes/my_alliance.py +++ b/screeps_loan/routes/my_alliance.py @@ -64,7 +64,7 @@ def update_my_alliance_profile(): fullname = re.sub(r'([^\s\w]|_)+', '', request.form['fullname']) shortname = re.sub(r'([^\s\w]|_)+', '', request.form['shortname']) slack_channel = re.sub(r'([^\s\w]|_)+', '', request.form['slack_channel']) - color = re.sub(r'([^\s\w]|_)+', '', request.form['color']) + color = re.sub(r'([^\s\w#])+', '', request.form['color']) my_id = session['my_id'] alliance = users_model.alliance_of_user(my_id) alliances_model.update_all_alliances_info(alliance['shortname'], shortname, fullname, slack_channel, color)