Mark as regexp string.
This commit is contained in:
parent
d7f51b0982
commit
7ace452d43
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue