Skip to content

Undefined field gsub for string:gsub #567

Description

@serg3295

Describe the bug
luasrv_err34

To Reproduce

local optparam = {}
local allop = {}
for op in string.gmatch(allop, "[%[%s]+([%s%w_\1\2\3]+)[%[%]]") do
  optparam[#optparam + 1]  = op :gsub("\1", ",")
                                :gsub("\2", "[")
                                :gsub("\3", "]")
end

Environment (please complete the following information):

  • OS: Linux Mint
  • Is WSL remote?
  • Client: VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions