better matching

This commit is contained in:
bitingsock 2021-03-07 03:09:26 -08:00 committed by GitHub
parent f175a92690
commit c8b4639c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -39,11 +39,8 @@ end
function showList()
local delString = "Delete Marks:\n"
for _,v in pairs(del_list) do
if v:find("\\") then
delString = delString..v:match("\\([^\\]*)$").."; "
else
delString = delString..v:match("/([^/]*)$").."; "
end
local dFile = v:gsub("/","\\")
delString = delString..dFile:match("\\*([^\\]*)$").."; "
end
if delString:find(";") then
mp.osd_message(delString)