add additional sound flags (#3155)

This commit is contained in:
Denneisk 2024-10-25 11:52:11 +00:00 committed by GitHub
parent 1335bfade2
commit 79479ddca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1545,7 +1545,7 @@ function WireLib.SoundExists(path, ply)
-- Extract sound flags. Only allowed flags are '<', '>', '^', ')'
local flags, checkpath = string.match(path, "^([^%w_/%.]*)(.*)")
if #flags>2 or string.match(flags, "[^<>%^%)]") then
if #flags>2 or string.match(flags, "[#@^<>%^%)}]") then
path = checkpath
end