edit regex so names containing -
are allowed
This commit is contained in:
parent
6913931d4f
commit
f60e6a545e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue