* Remove HTML tag when handling slug, fixed #49 * Fix slugify
This commit is contained in:
parent
847cf3b656
commit
114955558e
2 changed files with 5 additions and 0 deletions
|
|
@ -117,6 +117,7 @@ export function slugify (string) {
|
|||
if (!maintainCase) string = string.toLowerCase()
|
||||
|
||||
let slug = string.trim()
|
||||
.replace(/<[^>\d]+>/g, '')
|
||||
.replace(re, '')
|
||||
.replace(/\s/g, replacement)
|
||||
let occurrences = slugify.occurrences[slug]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue