fix: unused char
This commit is contained in:
parent
d3a32e2f8a
commit
914dcc5e2c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue