From f60e6a545e7a52752b5762a36d0d8bd23c63299c Mon Sep 17 00:00:00 2001 From: Jan-Pieter Baert <32643670+Jan-PieterBaert@users.noreply.github.com> Date: Sun, 2 Jun 2019 00:19:06 +0200 Subject: [PATCH] edit regex so names containing `-` are allowed --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)