Software /
code /
prosody
File
util/xpcall.lua @ 13394:6debd8dd12ab
util.xtemplate: Adopt {-path-} syntax to strip preceding and/or trailing whitespace
Seen in some other template languages
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 Dec 2023 14:57:41 +0100 |
parent | 12975:d10957394a3c |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"prosody.util.compat".xpcall; end return { xpcall = xpcall; };