fix bugs, fix items not removing from list, fix patterns

This commit is contained in:
Brandon Sturgeon 2021-01-25 21:18:09 -05:00 committed by pierce
parent 031fd57a70
commit 1cece9e125
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ CFCHTTP = CFCHTTP or {}
CFCHTTP.allowedAddresses = {
-- dropbox
["dl.dropboxusercontent.com"] = {allowed=true},
["dl.dropbox.com"] = {allowed=true}
["dl.dropbox.com"] = {allowed=true},
["www.dropbox.com"] = {allowed=true},
["onedrive.live.com"] = {allowed=true},
@ -47,8 +47,8 @@ CFCHTTP.allowedAddresses = {
["translate.google.com"] = {allowed=true},
["api.foxorsomething.net"] = {allowed=true},
["[cdn[%w-_]*.discordapp%.com/(.+)]"] = {allowed=true, isPattern=true},
["mages-([%w%-]+)%.discordapp%.net/external/(.+)"] = {allowed=true, isPattern=true},
["cdn[%w-_]*.discordapp%.com/(.+)"] = {allowed=true, isPattern=true},
["images-([%w%-]+)%.discordapp%.net/external/(.+)"] = {allowed=true, isPattern=true},
["i([%w-_]+)%.tinypic%.com/(.+)"] = {allowed=true, isPattern=true},

View File

@ -1,5 +1,5 @@
local function removeByValue( listView, value )
for i, line in ipairs( listView:GetLines() ) do
for i, line in pairs( listView:GetLines() ) do
if line:GetValue( 1 ) == value then
listView:RemoveLine( i )
return