From 8ddab5a74074ea0bc6f9dc10517726b8a5e1f90b Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Wed, 10 Jul 2024 16:34:19 -0400 Subject: [PATCH] fix: support multiple slash in xslugify.js (#7658) --- client/shared/xslugify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/shared/xslugify.js b/client/shared/xslugify.js index daf0bdf2ba..e1f7a34483 100644 --- a/client/shared/xslugify.js +++ b/client/shared/xslugify.js @@ -1,5 +1,5 @@ import slugify from 'slugify' export default (str) => { - return slugify(str.replace('/', '-'), { lower: true }) + return slugify(str.replaceAll('/', '-'), { lower: true }) }