╭ changed ────╮ │src/event.zig│ ╰─────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────╮ │ 92 pub const active_event_id_set_key = "active-event-id-set"; │ │ 93 pub const removed_event_id_set_key = "removed-event-id-set";│ │ 94 const event_order_key = "event-order"; │ │ 95 + │ │ 96 +pub fn titleValid(title: []const u8) bool { │ │ 97 + return std.mem.trim(u8, title, " \t\r\n").len != 0; │ │ 98 +} │ │ 99 │ │100 // a null payload removes the record │ │101 pub const Event = union(EventKind) { │ ╰─────────────────────────────────────────────────────────────────╯