mk 0.7.10

Yet another simple task runner 🦀
Documentation
1
2
3
4
5
6
7
use regex::Regex;

#[allow(dead_code)]
pub fn is_path_safe(path: &str) -> anyhow::Result<bool> {
  let re = Regex::new(r"^[a-zA-Z0-9_\-\/]+$")?;
  Ok(re.is_match(path))
}