From caf72c9aef99e700fed403dca3e654cc8de1dab4 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Thu, 11 Mar 2021 17:41:34 +0100 Subject: [PATCH] Fix absolute path error on windows --- espanso-config/src/config/path.rs | 2 +- espanso-ipc/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/espanso-config/src/config/path.rs b/espanso-config/src/config/path.rs index f40befc..fa8a099 100644 --- a/espanso-config/src/config/path.rs +++ b/espanso-config/src/config/path.rs @@ -24,7 +24,7 @@ use log::error; use regex::Regex; lazy_static! { - static ref ABSOLUTE_PATH: Regex = Regex::new(r"(?m)^([a-zA-Z]:/|/).*$").unwrap(); + static ref ABSOLUTE_PATH: Regex = Regex::new(r"(?m)^([a-zA-Z]:\\|/).*$").unwrap(); } pub fn calculate_paths<'a>( diff --git a/espanso-ipc/src/lib.rs b/espanso-ipc/src/lib.rs index 6a322e4..1abbb4f 100644 --- a/espanso-ipc/src/lib.rs +++ b/espanso-ipc/src/lib.rs @@ -98,7 +98,7 @@ mod tests { }); // TODO: avoid delay and change the IPC code so that we can wait for the IPC - //std::thread::sleep(std::time::Duration::from_secs(1)); + std::thread::sleep(std::time::Duration::from_millis(300)); let client = client::("testespansoipc", &std::env::temp_dir()).unwrap(); client.send(Event::Foo("hello".to_string())).unwrap();