X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fweb%2Fluasrc%2Ftemplate.lua;h=e5a4884ce53bb4ab152abaf0d26880e7ff06eee5;hp=f7dcb56028ee1c7a570c3b068f336e33f87264a0;hb=a41f33ba0188f897c6277cb23f9371749d2403f5;hpb=715ae856271d1b0a9bce7c517a562a00ef38bd3f diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua index f7dcb5602..e5a4884ce 100644 --- a/libs/web/luasrc/template.lua +++ b/libs/web/luasrc/template.lua @@ -102,6 +102,8 @@ function compile(template) end elseif p == "=" then re = r_pexec:format(v:sub(2)) + elseif p == "#" then + re = "" else re = r_exec:format(v) end