fix: support multiple slash in xslugify.js (#7658)

This commit is contained in:
Nicolas Giard 2024-07-10 16:34:19 -04:00 committed by GitHub
parent b2a858c880
commit 8ddab5a740
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
import slugify from 'slugify'
export default (str) => {
return slugify(str.replace('/', '-'), { lower: true })
return slugify(str.replaceAll('/', '-'), { lower: true })
}