mirror of
https://github.com/bluxmit/alnoda-workspaces.git
synced 2024-04-29 19:52:19 +12:00
16 lines
534 B
Python
16 lines
534 B
Python
# -----------------------------------------------------------------------------
|
|
# Copyright (C) Jupyter Development Team
|
|
#
|
|
# Distributed under the terms of the BSD License. The full license is in
|
|
# the file COPYING, distributed as part of this software.
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
def uri_rewrites(rewrites=[]):
|
|
return rewrites + [
|
|
(
|
|
r"^http(s?)://www.dropbox.com/(sh?)/(.+?)(\?dl=.)*$",
|
|
u"/url{0}/dl.dropbox.com/{1}/{2}",
|
|
)
|
|
]
|