Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit 8f8f375

Browse files
fix(buildSlug): respect separator for appended count (#105)
* feat: added seperator to count * fix(buildSlug): use supported features for object property * fix(buildSlug:separator): it should be `separator` not `seperator` --------- Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
1 parent 77a1c81 commit 8f8f375

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/services/slug-service/buildSlug.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const buildSlug = async (string, settings) => {
3232
},
3333
});
3434

35-
return `${slug}-${count}`;
35+
const separator = settings.slugifyOptions.separator || '-';
36+
return `${slug}${separator}${count}`;
3637
};
3738

3839
module.exports = {

0 commit comments

Comments
 (0)