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

Adds _ and ~ as allowed slug characters
This commit is contained in:
Jori Lallo 2018-05-07 06:40:23 +12:00 committed by GitHub
commit fbde67d1bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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`;