Fixed flow errors and small refactor

This commit is contained in:
Jori Lallo
2017-07-09 11:26:17 -07:00
parent d72f73ab18
commit c4b41a9e07
12 changed files with 33 additions and 22 deletions

View File

@ -11,6 +11,7 @@ import Revision from './Revision';
const URL_REGEX = /^[a-zA-Z0-9-]*-([a-zA-Z0-9]{10,15})$/;
// $FlowIssue invalid flow-typed
slug.defaults.mode = 'rfc3986';
const slugify = text =>
slug(text, {