Fix absolute path error on windows

This commit is contained in:
Federico Terzi 2021-03-11 17:41:34 +01:00
parent 784e074795
commit caf72c9aef
2 changed files with 2 additions and 2 deletions

View File

@ -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>(

View File

@ -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::<Event>("testespansoipc", &std::env::temp_dir()).unwrap();
client.send(Event::Foo("hello".to_string())).unwrap();