Merge pull request #1077 from OKaluza/editshortlinks-fix

Modify regex group for username to allow periods
pull/1082/head
Piero Toffanin 2021-10-21 00:53:42 -04:00 zatwierdzone przez GitHub
commit 974a3000be
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -13,7 +13,7 @@ class Plugin(PluginBase):
def root_mount_points(self):
return [
MountPoint(r'^s(?P<view_type>[m3])/(?P<username>[^/.]+)/(?P<short_id>[A-Za-z0-9_-]+)/?$', HandleShortLink)
MountPoint(r'^s(?P<view_type>[m3])/(?P<username>[^/]+)/(?P<short_id>[A-Za-z0-9_-]+)/?$', HandleShortLink)
]
def api_mount_points(self):