Skip to content

Commit

Permalink
fix: support multiple slash in xslugify.js (#7658)
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel authored Jul 10, 2024
1 parent b2a858c commit 8ddab5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/shared/xslugify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import slugify from 'slugify'

export default (str) => {
return slugify(str.replace('/', '-'), { lower: true })
return slugify(str.replaceAll('/', '-'), { lower: true })
}

0 comments on commit 8ddab5a

Please sign in to comment.