Skip to content

Commit

Permalink
Fix regex in color
Browse files Browse the repository at this point in the history
  • Loading branch information
NhanHo authored Oct 10, 2016
1 parent 0250d24 commit 39178b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screeps_loan/routes/my_alliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 39178b3

Please sign in to comment.