Move makeSlug to function

This commit is contained in:
Sam Carlton 2021-04-17 22:36:06 -05:00
parent d1cb178be1
commit 00f1f1397c
5 changed files with 17 additions and 30 deletions

View file

@ -1,12 +1,8 @@
// Universal JS imports only
import slugify from 'slugify'
import { makeSlug } from './slug.js'
export function makeCategorySlug ( categoryName ) {
return slugify(categoryName, {
lower: true,
strict: true
})
return makeSlug( categoryName )
}