From 3f1a93a5981d81936e6d18288213b71fb46cfc15 Mon Sep 17 00:00:00 2001 From: lostd Date: Tue, 25 Nov 2014 17:20:06 +0200 Subject: [PATCH] Simplify default regexes --- config.def.h | 2 +- noice.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index 855af216..150968e5 100644 --- a/config.def.h +++ b/config.def.h @@ -8,7 +8,7 @@ struct assoc assocs[] = { { "\\.(html|svg)$", "firefox" }, { "\\.pdf$", "mupdf" }, { "\\.sh$", "sh" }, - { ".*", "less" }, + { ".", "less" }, }; struct key bindings[] = { diff --git a/noice.c b/noice.c index e656949f..0f55a8bf 100644 --- a/noice.c +++ b/noice.c @@ -758,9 +758,9 @@ main(int argc, char *argv[]) char *ifilter; if (getuid() == 0) - ifilter = ".*"; + ifilter = "."; else - ifilter = "^[^.].*"; /* Hide dotfiles */ + ifilter = "^[^.]"; /* Hide dotfiles */ if (argv[1] != NULL) { ipath = argv[1];