Compare commits
2 Commits
0072f924c9
...
472b604c8e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
472b604c8e | ||
|
|
d10033f11e |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.7.204",
|
"version": "1.7.205",
|
||||||
"description": "Desktop downloader",
|
"description": "Desktop downloader",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -2765,28 +2765,16 @@ export function App(): ReactElement {
|
|||||||
}
|
}
|
||||||
let changelogText = "";
|
let changelogText = "";
|
||||||
if (result.releaseNotes) {
|
if (result.releaseNotes) {
|
||||||
const lines = result.releaseNotes.split("\n");
|
changelogText = result.releaseNotes
|
||||||
const compactLines: string[] = [];
|
.split("\n")
|
||||||
for (const line of lines) {
|
.filter((line) => !/^#{1,6}\s/.test(line))
|
||||||
if (/^\s{2,}[-*]/.test(line)) continue;
|
.map((line) => line
|
||||||
if (/^#{1,6}\s/.test(line)) continue;
|
|
||||||
if (!line.trim()) continue;
|
|
||||||
let clean = line
|
|
||||||
.replace(/\*\*([^*]+)\*\*/g, "$1")
|
.replace(/\*\*([^*]+)\*\*/g, "$1")
|
||||||
.replace(/\*([^*]+)\*/g, "$1")
|
.replace(/\*([^*]+)\*/g, "$1")
|
||||||
.replace(/`([^`]+)`/g, "$1")
|
.replace(/`([^`]+)`/g, "$1"))
|
||||||
.replace(/^\s*[-*]\s+/, "- ")
|
.join("\n")
|
||||||
.trim();
|
.replace(/\n{3,}/g, "\n\n")
|
||||||
const colonIdx = clean.indexOf(":");
|
.trim();
|
||||||
if (colonIdx > 0 && colonIdx < clean.length - 1) {
|
|
||||||
const afterColon = clean.slice(colonIdx + 1).trim();
|
|
||||||
if (afterColon.length > 60) {
|
|
||||||
clean = clean.slice(0, colonIdx + 1).trim();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (clean) compactLines.push(clean);
|
|
||||||
}
|
|
||||||
changelogText = compactLines.join("\n");
|
|
||||||
}
|
}
|
||||||
const approved = await askConfirmPrompt({
|
const approved = await askConfirmPrompt({
|
||||||
title: "Update verfügbar",
|
title: "Update verfügbar",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user