Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/widget/creator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl UnitCreatorWindow {
}
}

pub const VALID_UNIT_NAME: &str = r"^[a-zA-Z0-9._:\-]+@?$";
pub const VALID_UNIT_NAME: &str = r"^[a-zA-Z0-9._:\-\\]+@?$";
pub const ACTION_CREATOR_UNIT_BUS: &str = "creator.create-unit-bus-selection";
pub const ACTION_CREATOR_UNIT_TYPE_SELECTION: &str = "creator.create-unit-type-selection";
pub const ACTION_CREATOR_NEXT: &str = "creator.next";
Expand Down
2 changes: 1 addition & 1 deletion src/widget/unit_list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ mod tests {
#[test]
fn test_id_extracts_correct_substring() {
assert_eq!(UnitCuratedList::Defaut.id(), "default");
assert_eq!(UnitCuratedList::LoadedUnit.id(), "active");
assert_eq!(UnitCuratedList::LoadedUnit.id(), "loaded");
assert_eq!(UnitCuratedList::UnitFiles.id(), "unit_file");
assert_eq!(UnitCuratedList::Timers.id(), "timers");
assert_eq!(UnitCuratedList::Sockets.id(), "sockets");
Expand Down