mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
delete cosmos
This commit is contained in:
@@ -17,9 +17,8 @@ const getVersions = async () => {
|
||||
const versions: AppVersion[] = JSON.parse(fileContent);
|
||||
|
||||
const modifiedVersions = versions.map(version => {
|
||||
const nameParts = version.name.split('/');
|
||||
let newName = nameParts[nameParts.length - 1];
|
||||
newName = newName.toLowerCase().replace(/[^a-z0-9]/g, '');
|
||||
let newName = version.name;
|
||||
newName = newName.toLowerCase().replace(/[^a-z0-9/]/g, '');
|
||||
return { ...version, name: newName };
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user