diff --git a/cs/src/day1/lolcat.rs b/cs/src/day1/lolcat.rs index 36131e4..6525a19 100644 --- a/cs/src/day1/lolcat.rs +++ b/cs/src/day1/lolcat.rs @@ -49,7 +49,7 @@ pub fn task() -> Task { .validator(FileContent { file: fish_history.clone(), expected: StringContent::Regex( - Regex::new(r"lolcat.* (-r |--random)").expect("Failed to build a regex"), + Regex::new(r"lolcat.* (-r( |\n)|--random)").expect("Failed to build a regex"), ), }) .hint("Did you read the help message of `lolcat` to find out how to add randomness to the output colors?") diff --git a/cs/src/day1/system_update.rs b/cs/src/day1/system_update.rs index f0b3e72..ebb5b26 100644 --- a/cs/src/day1/system_update.rs +++ b/cs/src/day1/system_update.rs @@ -10,7 +10,7 @@ pub fn task() -> Task { file: dirs::home_dir() .expect("Failed to get the home directory!") .join(".local/share/fish/fish_history"), - expected: StringContent::Part("\n- cmd: dnf upgrade"), + expected: StringContent::Part("\n- cmd: sudo dnf upgrade"), }) .hint("Did you try to update the system? Are you in the fish shell?") .build()