fix: Add '-' to valid filename chars
This commit is contained in:
parent
6c99ba6ba7
commit
15dcaababd
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue