Update slugify() util function to support plural initialisms
This commit is contained in:
parent
ffefef1cec
commit
a7fe81f18f
2 changed files with 5 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
## 0.2.7 - 2018-05-25
|
||||
|
||||
* Update slugify() util function to support plural initialisms
|
||||
|
||||
## 0.2.6 - 2018-05-25
|
||||
|
||||
* Add slugify() util function
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import _kebabCase from 'lodash/kebabCase'
|
|||
export const slugify = (string = '') =>
|
||||
// keeps forward slashes
|
||||
string
|
||||
.toLowerCase()
|
||||
.split('/')
|
||||
.map(_kebabCase)
|
||||
.join('/')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue