fix: Add '-' to valid filename chars

This commit is contained in:
shadmansaleh 2021-08-20 10:34:31 +06:00
parent 6c99ba6ba7
commit 15dcaababd
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function M.is_focused()
end end
function M.is_valid_filename(name) 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 return name:find(invalid_chars) == nil
end end