fix: unused char

This commit is contained in:
Methapon2001 2023-11-21 10:13:27 +07:00
parent d3a32e2f8a
commit 914dcc5e2c
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -16,7 +16,7 @@ function safePath(path: string) {
* @returns path with illegal character replaced with "-"
*/
export function replaceIllegalChars(path: string, replaceChar = "-") {
return path.replace(/[/\\?%*:|"<>]/g, "-");
return path.replace(/[/\\?%*:|"<>]/g, replaceChar);
}
/**