aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 66b2880..3164bd4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -262,7 +262,7 @@ fn single(opt: &Opt) -> Result<()> {
if opt.expression.len() == 1 {
let line = &opt.expression[0];
let maybe_filter = build_filter(line);
- if maybe_filter.is_err() {
+ if maybe_filter.is_err() && !line.starts_with('-') {
let maybe_regex = Regex::new(line);
if let Ok(rgx) = maybe_regex {
let filter = filters::player::any(