Merge branch 'master' into fix-regexp

This commit is contained in:
Ferran Basora 2020-09-04 20:35:17 +02:00 committed by GitHub
commit 9b677a67c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ more with `--regexp` parameter.
## Prerequisites ## Prerequisites
`tmux-thums` is written in Rust. You will need `rustc` version 1.35.0 or higher. The `tmux-thumbs` is written in Rust. You will need `rustc` version 1.35.0 or higher. The
recommended way to install Rust is from the official [download page](https://rustup.rs/). recommended way to install Rust is from the official [download page](https://rustup.rs/).
## Tmux integration ## Tmux integration

View File

@ -136,7 +136,7 @@ impl<'a> Swapper<'a> {
let options = self.executor.execute(params); let options = self.executor.execute(params);
let lines: Vec<&str> = options.split('\n').collect(); let lines: Vec<&str> = options.split('\n').collect();
let pattern = Regex::new(r#"@thumbs-([\w\-0-9]+)\s+"?([^"]+)"?$"#).unwrap(); let pattern = Regex::new(r#"^@thumbs-([\w\-0-9]+)\s+"?([^"]+)"?$"#).unwrap();
let args = lines let args = lines
.iter() .iter()