Software /
code /
prosody
Changeset
10763:e0e2ae050d65
util.rsm: Explicitly serialize numbers in correct format
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 23 Apr 2020 18:40:57 +0200 |
parents | 10762:4fc224c97986 |
children | 10764:1fbfcc2f6805 |
files | util/rsm.lua |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/rsm.lua Thu Apr 23 18:17:54 2020 +0200 +++ b/util/rsm.lua Thu Apr 23 18:40:57 2020 +0200 @@ -61,7 +61,13 @@ else st:tag("before"):text(tostring(data)):up(); end - end + end; + max = function (st, data) + st:tag("max"):text(inttostr(data)):up(); + end; + count = function (st, data) + st:tag("count"):text(inttostr(data)):up(); + end; }, { __index = function(_, name) return function(st, data)