homelab: Rueckweg auch als Kurzform (snapshot/sicherung/keiner) fuer die Update-Liste
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
37179b8864
commit
d2f699ac69
@@ -59,8 +59,8 @@ export function rueckwegText(ziel: ZielStand): string {
|
||||
|
||||
function rueckwegAusText(text: string | null): "snapshot" | "sicherung" | "keiner" {
|
||||
const t = (text ?? "").toLowerCase()
|
||||
if (t.includes("snapshot vor")) return "snapshot"
|
||||
if (t.includes("sicherung vor")) return "sicherung"
|
||||
if (t.startsWith("snapshot vor")) return "snapshot"
|
||||
if (t.startsWith("sicherung")) return "sicherung"
|
||||
return "keiner"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user