mirror of
https://github.com/outline/outline.git
synced 2026-11-26 15:43:48 +03:00
Merge pull request #640 from outline/tommoor-patch-routehelper
Adds _ and ~ as allowed slug characters
This commit is contained in:
1 file changed
+1
-1
@@ -66,7 +66,7 @@ export function notFoundUrl(): string {
|
||||
}
|
||||
|
||||
export const matchDocumentSlug =
|
||||
':documentSlug([0-9a-zA-Z-]*-[a-zA-z0-9]{10,15})';
|
||||
':documentSlug([0-9a-zA-Z-_~]*-[a-zA-z0-9]{10,15})';
|
||||
|
||||
export const matchDocumentEdit = `/doc/${matchDocumentSlug}/edit`;
|
||||
export const matchDocumentMove = `/doc/${matchDocumentSlug}/move`;
|
||||
Reference in new issue
Block a user