Mark as regexp string.

This commit is contained in:
Edward Betts 2019-04-26 11:17:47 +01:00
parent d7f51b0982
commit 7ace452d43

View file

@ -24,7 +24,7 @@ doc_hashids = Hashids(min_length=8)
Base = declarative_base() Base = declarative_base()
Base.query = session.query_property() Base.query = session.query_property()
re_server_url = re.compile('^http://perma.pub/\d+/([^/]+)/([^/]+)$') re_server_url = re.compile(r'^http://perma.pub/\d+/([^/]+)/([^/]+)$')
# list of disallowed usernames - maybe this should be in the database # list of disallowed usernames - maybe this should be in the database
reserved_name = ['root', 'admin', 'administrator', 'support', 'info', reserved_name = ['root', 'admin', 'administrator', 'support', 'info',