Skip to content

Commit

Permalink
match all symbols at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
unknao committed Aug 23, 2024
1 parent 6351e7b commit afa585c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/wire/server/wirelib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ end

function WireLib.SoundExists(path)
if istable(sound.GetProperties(path)) then return true end
if file.Exists("sound/" .. string.gsub(path, "^%W", ""), "GAME") then return true end
if file.Exists("sound/" .. string.gsub(path, "^%W*", ""), "GAME") then return true end
end

-- Notify --
Expand Down

0 comments on commit afa585c

Please sign in to comment.