Fixed flow errors and small refactor
This commit is contained in:
@@ -5,6 +5,7 @@ import { DataTypes, sequelize } from '../sequelize';
|
||||
import Document from './Document';
|
||||
import _ from 'lodash';
|
||||
|
||||
// $FlowIssue invalid flow-typed
|
||||
slug.defaults.mode = 'rfc3986';
|
||||
|
||||
const allowedCollectionTypes = [['atlas', 'journal']];
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user