GreenWall

GreenWall

1M Downloads

[1.8.0] Incorrect regex in trim function.

mrogaski opened this issue ยท 0 comments

commented

This should match ^%s*(.+)%s*$, but using the convenience function strtrim() is probably better.

    local function trim(s)
        return string.gsub(s, '^%s*(.-)%s*$', '%1')
    end