fix: always use underscore
This commit is contained in:
+1
-1
@@ -328,6 +328,6 @@ export const toSafeName = (name: string) => {
|
|||||||
.replace(/[\x00-\x1F\x7F]/g, '_')
|
.replace(/[\x00-\x1F\x7F]/g, '_')
|
||||||
.replace(/[\s-]+/g, '_')
|
.replace(/[\s-]+/g, '_')
|
||||||
.replace(/_+/g, '_')
|
.replace(/_+/g, '_')
|
||||||
.replace(/[. ]+$/g, '')
|
.replace(/[. ]+$/g, '_')
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user