1
0
mirror of https://git.openwrt.org/project/luci.git synced 2025-10-14 01:32:18 +08:00

Merge pull request #463 from hnyman/max-len-version

Luci opkg/packages: Limit version string display to 26 chars
This commit is contained in:
Hannu Nyman
2015-09-02 08:50:58 +03:00

View File

@@ -139,6 +139,10 @@ local function _list(action, pat, cb)
desc = ""
end
if #version > 26 then
version = version:sub(1,21) .. ".." .. version:sub(-3,-1)
end
cb(name, version, desc)
name = nil