We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 359c58c commit 85b9472Copy full SHA for 85b9472
server/utils/generateFileSystemSafeName.ts
@@ -5,7 +5,7 @@
5
* @param {String} string
6
* @param {String} replacer (optional) character to replace invalid characters
7
*/
8
-function generateFileSystemSafeName(string, replacer) {
+function generateFileSystemSafeName(string: string, replacer: string) {
9
// from here https://serverfault.com/a/242134
10
const INVALID_CHARS_REGEX = /[*/?:\\<>|"\u0000-\u001F]/g; // eslint-disable-line
11
const slug = string.replace(INVALID_CHARS_REGEX, replacer || '');
0 commit comments