GE Lua Documentation

Press F to search!

rstripchars

Definition


-- @/lua/common/utils.lua:208

function string.rstripchars(String, chrs)
  return String:gsub("["..chrs.."]$", '')
end

Callers

@/lua/ge/extensions/tech/pythonExport.lua
  local lineStart = #buffer
  buffer:put(sensorName:gsub('[%[%] ]+', '_'):rstripchars('_'):lower())
  buffer:put(" = ")