Uppercase string representation of backup pattern

This commit is contained in:
Johannes Zellner
2025-09-29 11:07:31 +02:00
parent a1816896ca
commit 703b47d916
+1 -1
View File
@@ -222,7 +222,7 @@ function prettyBackupSchedule(pattern) {
if (!pattern) return '';
const tmp = pattern.split(' ');
if (tmp.length === 1) return pattern; // case for 'never'
if (tmp.length === 1) return pattern.charAt(0).toUpperCase() + pattern.slice(1); // case for 'never' - capitalize
const hours = tmp[2].split(','), days = tmp[5].split(',');
let prettyDay;