This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/utils/slugify.js
Tom Moor c526adf292
feat: Auto update titles in linked documents (#1233)
* feat: Auto update titles in linked documents

* Add spec
2020-04-19 21:58:42 -07:00

11 lines
174 B
JavaScript

// @flow
import slug from 'slug';
slug.defaults.mode = 'rfc3986';
export default function slugify(text: string): string {
return slug(text, {
remove: /[.]/g,
});
}