Skip to content

Commit ee7bdcb

Browse files
brain-holhfranklin
authored andcommitted
Remove colons from slugs
1 parent 13454bd commit ee7bdcb

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
@@ -18,7 +18,9 @@ export function getTypedFilename(
1818
type: string,
1919
suffix = 'json'
2020
): string {
21-
const slug = slugify(name.replace(/^http(s?):\/\//, ''));
21+
const slug = slugify(name.replace(/^http(s?):\/\//, ''), {
22+
remove: /[^\w\s$*_+~.()'"!\-@]+/g,
23+
});
2224
return `${slug}.${type}.${suffix}`;
2325
}
2426

0 commit comments

Comments
 (0)