From 15dcaababdb28c6b6aa4e7f3eca71757ada5a286 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Fri, 20 Aug 2021 10:34:31 +0600 Subject: [PATCH] fix: Add '-' to valid filename chars --- lua/lualine/utils/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/utils/utils.lua b/lua/lualine/utils/utils.lua index 3910834..c231955 100644 --- a/lua/lualine/utils/utils.lua +++ b/lua/lualine/utils/utils.lua @@ -76,7 +76,7 @@ function M.is_focused() end function M.is_valid_filename(name) - local invalid_chars="[^a-zA-Z0-9_. ]" + local invalid_chars="[^a-zA-Z0-9_. -]" return name:find(invalid_chars) == nil end