Restore New Document Functionality (#94)

* Restored New Document functionality

* Declarative SidebarHidden

* Fix edit route
This commit is contained in:
Tom Moor
2017-07-04 23:02:06 -07:00
committed by GitHub
parent 88cdbc413a
commit 1c83257483
8 changed files with 111 additions and 72 deletions

View File

@@ -9,7 +9,7 @@ import { convertToMarkdown } from '../../frontend/utils/markdown';
import { truncateMarkdown } from '../utils/truncate';
import Revision from './Revision';
const URL_REGEX = /^[a-zA-Z0-9-]*-([a-zA-Z]{10,15})$/;
const URL_REGEX = /^[a-zA-Z0-9-]*-([a-zA-Z0-9]{10,15})$/;
slug.defaults.mode = 'rfc3986';
const slugify = text =>