diff --git a/src/swapper.rs b/src/swapper.rs index b6b4f3a..f5994fa 100644 --- a/src/swapper.rs +++ b/src/swapper.rs @@ -127,7 +127,7 @@ impl<'a> Swapper<'a> { let options = self.executor.execute(params); let lines: Vec<&str> = options.split('\n').collect(); - let pattern = Regex::new(r#"@thumbs-([\w\-0-9]+) "(.*)""#).unwrap(); + let pattern = Regex::new(r#"@thumbs-([\w\-0-9]+) "?(\w+)"?"#).unwrap(); let args = lines .iter()