Software /
code /
verse
File
libs/encodings.lua @ 499:57417c37d018
util.adhoc: Fix naming of thing
If it's a verse-specific thing it shouldn't be in the prosody namespace,
and there was already a change to use it in the verse namespace.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Jun 2023 12:16:09 +0200 |
parent | 489:39ed19f12dca |
line wrap: on
line source
local mime = require "mime"; module "encodings" idna = {}; stringprep = {}; base64 = { encode = mime.b64, decode = mime.unb64 }; utf8 = { valid = (utf8 and utf8.len) and function (s) return not not utf8.len(s); end or function () return true; end; }; return _M;