Compare commits

..

No commits in common. "472b604c8eacd9478c8f7556203705bd7866ba86" and "0072f924c9c6d630a79d8a2fde73e506165fcbeb" have entirely different histories.

2 changed files with 21 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{
"name": "real-debrid-downloader",
"version": "1.7.205",
"version": "1.7.204",
"description": "Desktop downloader",
"main": "build/main/main/main.js",
"author": "Sucukdeluxe",

View File

@ -2765,16 +2765,28 @@ export function App(): ReactElement {
}
let changelogText = "";
if (result.releaseNotes) {
changelogText = result.releaseNotes
.split("\n")
.filter((line) => !/^#{1,6}\s/.test(line))
.map((line) => line
const lines = result.releaseNotes.split("\n");
const compactLines: string[] = [];
for (const line of lines) {
if (/^\s{2,}[-*]/.test(line)) continue;
if (/^#{1,6}\s/.test(line)) continue;
if (!line.trim()) continue;
let clean = line
.replace(/\*\*([^*]+)\*\*/g, "$1")
.replace(/\*([^*]+)\*/g, "$1")
.replace(/`([^`]+)`/g, "$1"))
.join("\n")
.replace(/\n{3,}/g, "\n\n")
.trim();
.replace(/`([^`]+)`/g, "$1")
.replace(/^\s*[-*]\s+/, "- ")
.trim();
const colonIdx = clean.indexOf(":");
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({
title: "Update verfügbar",