Skip to content

Commit

Permalink
Deploy latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
egon-development committed Aug 7, 2024
1 parent a30632d commit 69142d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions app-latest-build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10336,6 +10336,10 @@ function sanitizeForDesktop(str) {
return str ? str.replace(reg, match => map[match]) : '';
}
function sanitizeIconName(name) {
if (!name) {
return '';
}
let nameWithoutFileEnding = name.lastIndexOf('.') > 0 ? name.substring(0, name.lastIndexOf('.')) : name;
const map = {
'/': '',
'\\': '',
Expand All @@ -10348,13 +10352,10 @@ function sanitizeIconName(name) {
'|': '',
'(': '',
')': '',
' ': '-',
'.': '_'
' ': '-'
};
const reg = /[/\\:*?"<>|() .]/gi;
return name ? name.replace(reg, match => {
return map[match];
}) : '';
const reg = /[/\\:*?"<>|() ]/gi;
return nameWithoutFileEnding.trim().replace(reg, match => map[match]);
}

/***/ }),
Expand Down
2 changes: 1 addition & 1 deletion app-latest-build/main.js.map

Large diffs are not rendered by default.

0 comments on commit 69142d0

Please sign in to comment.