feat: Auto update titles in linked documents (#1233)
* feat: Auto update titles in linked documents * Add spec
This commit is contained in:
10
server/utils/slugify.js
Normal file
10
server/utils/slugify.js
Normal file
@ -0,0 +1,10 @@
|
||||
// @flow
|
||||
import slug from 'slug';
|
||||
|
||||
slug.defaults.mode = 'rfc3986';
|
||||
|
||||
export default function slugify(text: string): string {
|
||||
return slug(text, {
|
||||
remove: /[.]/g,
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user