Skip to content

Commit ae980ba

Browse files
Fix parsing for long port names/descriptions in Starfall (#3395)
1 parent 82541ec commit ae980ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/wire/server/wirelib.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ end
3232

3333
-- Allow to specify the description and type, like "Name (Description) [TYPE]"
3434
local function ParsePortName(namedesctype, fbtype, fbdesc)
35-
local namedesc, tp = namedesctype:match("^(.+) %[(.+)%]$")
35+
local namedesc, tp = string.match(namedesctype, "^(.+) %[(.+)%]$")
3636
if not namedesc then
3737
namedesc = namedesctype
3838
tp = fbtype
3939
end
4040

41-
local name, desc = namedesc:match("^(.+) %((.*)%)$")
41+
local name, desc = string.match(namedesc, "^(.+) %((.*)%)$")
4242
if not name then
4343
name = namedesc
4444
desc = fbdesc

0 commit comments

Comments
 (0)