Commit 8c802a50 authored by ViolanteCodes's avatar ViolanteCodes
Browse files

moved all the statements for replace onto one line and added commas

parent df56ed66
......@@ -44,8 +44,7 @@ class LoginForm(forms.Form):
"""Santizes the login string"""
#convert to lowercase and strip whitespace
working = login_string.lower().strip()
working = working.replace(' ', '-')
working = working.replace('_', '-')
working = working.replace('_', '-').replace(',', '-').replace(' ', '-')
if '--' in working:
while '--' in working:
working = working.replace('--', '-')
......
Markdown is supported
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