Remove all non-ascii characters or use default for app name (#217)
This commit is contained in:
parent
a407b9ea52
commit
48f0872ee5
|
@ -155,8 +155,8 @@ function optionsFactory(inpOptions, callback) {
|
|||
|
||||
function sanitizeFilename(str) {
|
||||
const cleaned = sanitizeFilenameLib(str);
|
||||
// remove non ascii
|
||||
return cleaned.replace(/[^\x00-\x7F]/, '');
|
||||
// remove all non ascii or use default app name
|
||||
return cleaned.replace(/[^\x00-\x7F]/g, '') || DEFAULT_APP_NAME;
|
||||
}
|
||||
|
||||
function sanitizeOptions(options) {
|
||||
|
|
Loading…
Reference in New Issue