X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=core%2Fsrc%2Fffluci%2Futil.lua;h=9e3c7f25e97e0c702aed25e05b0b79c96890eb54;hp=b76278ddab6ee3534cc60bfe486b0280f4dac593;hb=4264e6b7808066686223d0294bd01a84659f9f38;hpb=54d92ebab5f402409b26a28994ed9309e47c4b41 diff --git a/core/src/ffluci/util.lua b/core/src/ffluci/util.lua index b76278dda..9e3c7f25e 100644 --- a/core/src/ffluci/util.lua +++ b/core/src/ffluci/util.lua @@ -170,8 +170,8 @@ function split(str, pat, max, regex) end -- Removes whitespace from beginning and end of a string -function trim(string) - local s = string:gsub("^%s*(.-)%s*$", "%1") +function trim(str) + local s = str:gsub("^%s*(.-)%s*$", "%1") return s end