Skip to content

Commit 546a497

Browse files
authored
Additions to the default whitelist (#64)
* fix soundcloud subdomain pattern * added bandcamp and googlevideo whitelist patterns * Update webaudio.lua Update webaudio.lua Update webaudio.lua
1 parent c6f44a0 commit 546a497

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lua/autorun/webaudio.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,13 @@ local registers = { ["pattern"] = pattern, ["simple"] = simple }
522522

523523
local Whitelist = {
524524
-- Soundcloud
525-
pattern [[%w+%.sndcdn%.com/.+]],
525+
pattern [[[%w-_]+%.sndcdn%.com/.+]],
526+
527+
-- Bandcamp
528+
pattern [[[%w-_]+%.bcbits%.com/.+]],
529+
530+
-- Google Video (used by Youtube)
531+
pattern [[[%w-_]+%.googlevideo%.com/.+]],
526532

527533
-- Google Translate Api, Needs an api key.
528534
simple [[translate.google.com]],

0 commit comments

Comments
 (0)