aboutsummaryrefslogtreecommitdiffstats
path: root/util/format.lua
Commit message (Expand)AuthorAgeFilesLines
* util: Prefix module imports with prosody namespaceKim Alvefur2023-03-171-2/+2
* util.startup: Provide a common Lua 5.3+ math.type() for Lua 5.2Kim Alvefur2022-10-191-3/+1
* compat: Use table.pack (there since Lua 5.2) over our util.tableKim Alvefur2022-07-111-1/+1
* compat: Remove handling of Lua 5.1 location of 'unpack' functionKim Alvefur2022-07-111-1/+1
* util: Remove various Lua 5.1 compatibility hacksKim Alvefur2022-07-021-3/+0
* util.format: Fix typo in comment [codespell]Kim Alvefur2022-02-041-1/+1
* util.format: Expand explanation of purpose in commentsKim Alvefur2022-01-271-1/+6
* util.format: Skip control code escaping when doing full serializationKim Alvefur2022-01-271-1/+1
* util.format: Optimize most common integer formatKim Alvefur2021-12-131-0/+2
* util.format: Ensure metatable __tostring results are also sanitizedKim Alvefur2021-12-131-1/+2
* util.format: Fix some formats expecting positive numbers in Lua 5.2Kim Alvefur2021-12-111-0/+5
* util.format: Fix Lua 5.1 quirks thanks to ALL THE TESTSKim Alvefur2021-12-111-1/+6
* util.format: Also handle the %p format added in Lua 5.4Kim Alvefur2021-12-111-3/+18
* util.format: Ensure sanitation of strings passed to wrong formatKim Alvefur2021-12-111-21/+37
* util.format: Escape invalid UTF-8 by passing trough serializationKim Alvefur2021-12-101-1/+10
* util.format: Escape ASCII control characters also in extra argumentsKim Alvefur2021-07-031-1/+1
* util.format: Allow newlines but ensure following lines are indentedKim Alvefur2021-07-031-1/+1
* util.format: Fix missing backslash in patternKim Alvefur2021-07-031-1/+1
* util.format: Change formatting of nil values to avoid looking like XMLKim Alvefur2021-06-291-2/+2
* util.format: Escape ASCII control characters in outputKim Alvefur2021-06-151-1/+16
* util.format: Handle integer formats the same way on Lua versions without inte...Kim Alvefur2019-05-301-2/+5
* util.format: Handle formats expecting an integer in Lua 5.3+ (fixes #1371)Kim Alvefur2019-05-301-0/+6
* util.format: Serialize values for the %q formatKim Alvefur2018-10-121-1/+5
* util.format: Use pack from util.tableKim Alvefur2018-12-081-2/+3
* util.format: Tweak how nil values are handledKim Alvefur2018-11-281-5/+4
* util.format: Import unpack from table lib in Lua 5.2+Kim Alvefur2017-11-231-1/+1
* util.format: Move tests to spec/Kim Alvefur2017-11-101-10/+0
* util: Various minor changes to please [luacheck]Kim Alvefur2017-11-101-4/+4
* util.format: A string.format wrapper that gracefully handles invalid argumentsWaqas Hussain2017-09-101-0/+74