diff --git a/app/models.py b/app/models.py index 8faa491..fd27841 100644 --- a/app/models.py +++ b/app/models.py @@ -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 "".format(self.quoter, self.quote)