vvvvvvvvvvvvvvv
This commit is contained in:
parent
46f29624cb
commit
09fe6f5a07
8 changed files with 30 additions and 30 deletions
|
@ -201,9 +201,9 @@ class Submission(Base):
|
|||
|
||||
output = self.title.lower()
|
||||
|
||||
output = re.sub('&\w{2,3};', '', output)
|
||||
output = re.sub('&\w{2,3};', '', output, flags=re.A)
|
||||
|
||||
output = [re.sub('\W', '', word) for word in output.split()]
|
||||
output = [re.sub('\W', '', word, flags=re.A) for word in output.split()]
|
||||
output = [x for x in output if x][:6]
|
||||
|
||||
output = '-'.join(output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue