On Linux (SUSE at least), if `--name` isn't provided and is inferred, the filename is prepended with the control character LRM (https://en.wikipedia.org/wiki/Left-to-right_mark) and I'd assume RLM for anyone who's using that setting. This PR strips those control characters out of the file name.
This commit is contained in:
parent
2f97a7156b
commit
83dce91c47
|
@ -11,7 +11,7 @@ export function sanitizeFilename(
|
|||
|
||||
// spaces will cause problems with Ubuntu when pinned to the dock
|
||||
if (platform === 'linux') {
|
||||
result = result.replace(/\s/g, '');
|
||||
result = result.replace(/[\s\u200e\u200f]/g, '');
|
||||
}
|
||||
|
||||
if (!result || result === '') {
|
||||
|
|
Loading…
Reference in New Issue