diff --git a/lua/wire/wireshared.lua b/lua/wire/wireshared.lua index fdbff5e0e0..445a5d315a 100644 --- a/lua/wire/wireshared.lua +++ b/lua/wire/wireshared.lua @@ -54,6 +54,9 @@ end function string.GetNormalizedFilepath( path ) -- luacheck: ignore + local null = string.find(path, "\x00", 1, true) + if null then path = string.sub(path, 1, null-1) end + local tbl = string.Explode( "[/\\]+", path, true ) local i = 1 while i <= #tbl do