Skip to content

Commit 3211bc1

Browse files
brain-holhfranklin
authored andcommitted
Remove colons from slugs
1 parent 4dfbcf5 commit 3211bc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/utils/ExportImportUtils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export function getTypedFilename(
6060
type: string,
6161
suffix = 'json'
6262
): string {
63-
const slug = slugify(name.replace(/^http(s?):\/\//, ''));
63+
const slug = slugify(name.replace(/^http(s?):\/\//, ''), {
64+
remove: /[^\w\s$*_+~.()'"!\-@]+/g,
65+
});
6466
return `${slug}.${type}.${suffix}`;
6567
}
6668

0 commit comments

Comments
 (0)