remove quotes around paths with dashs
(when there's no other reason to have quotes)
@@ -58,7 +58,7 @@ impl Launchable {
// is prettier on screen.
pub fn escape_for_shell(path: &Path) -> String {
lazy_static! {
- static ref SIMPLE_PATH: Regex = Regex::new(r"^[\w/.]*$").unwrap();
+ static ref SIMPLE_PATH: Regex = Regex::new(r"^[\w/.-]*$").unwrap();
}
let path = path.to_string_lossy();
if SIMPLE_PATH.is_match(&path) {
