Merge pull request #640 from outline/tommoor-patch-routehelper

Adds _ and ~ as allowed slug characters
This commit is contained in:
Jori Lallo authored and GitHub committed 2018-05-07 06:40:23 +12:00
commit fbde67d1bd
1 file changed
+1 -1
+1 -1
View File
@@ -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`;