Commit f60e6a54 authored by Jan-Pieter Baert's avatar Jan-Pieter Baert Committed by GitHub

edit regex so names containing `-` are allowed

parent 6913931d
......@@ -29,7 +29,7 @@ class Quote(db.Model):
default=datetime.utcnow
)
QUOTEE_REGEX = re.compile('\W*(\w+).*')
QUOTEE_REGEX = re.compile('\W*([a-zA-Z\-_0-9]+).*')
def __repr__(self):
return "<Quote {} \"{}\">".format(self.quoter, self.quote)
......
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