Commit Graph

31 Commits (master)

Author SHA1 Message Date
Kim Alvefur 9bbfb849b1 util.format: Restore "freeze" serialization behavior in logging 3 years ago
Kim Alvefur 328447c2b1 util.format: Tweak serialization of %q formatted entries 3 years ago
Kim Alvefur 43531740f9 util: Prefix module imports with prosody namespace 3 years ago
Kim Alvefur e64c5e30c2 util.startup: Provide a common Lua 5.3+ math.type() for Lua 5.2 3 years ago
Kim Alvefur f8e73eba98 compat: Use table.pack (there since Lua 5.2) over our util.table 4 years ago
Kim Alvefur 5251c9b686 compat: Remove handling of Lua 5.1 location of 'unpack' function 4 years ago
Kim Alvefur 49a9a1e76a util: Remove various Lua 5.1 compatibility hacks 4 years ago
Kim Alvefur c6e9692a00 util.format: Fix typo in comment [codespell] 4 years ago
Kim Alvefur dccab4e10f util.format: Expand explanation of purpose in comments 4 years ago
Kim Alvefur c551d3d8dd util.format: Skip control code escaping when doing full serialization 4 years ago
Kim Alvefur 0e997ab3f9 util.format: Optimize most common integer format 4 years ago
Kim Alvefur 58c9115351 util.format: Ensure metatable __tostring results are also sanitized 4 years ago
Kim Alvefur d482ece962 util.format: Fix some formats expecting positive numbers in Lua 5.2 4 years ago
Kim Alvefur db41cd8e4d util.format: Fix Lua 5.1 quirks thanks to ALL THE TESTS 4 years ago
Kim Alvefur 0ddd204a27 util.format: Also handle the %p format added in Lua 5.4 4 years ago
Kim Alvefur 1eca4e8870 util.format: Ensure sanitation of strings passed to wrong format 4 years ago
Kim Alvefur d4c1451794 util.format: Escape invalid UTF-8 by passing trough serialization 4 years ago
Kim Alvefur 130f74381c util.format: Escape ASCII control characters also in extra arguments 5 years ago
Kim Alvefur 7e09f662cb util.format: Allow newlines but ensure following lines are indented 5 years ago
Kim Alvefur f179b18e2b util.format: Fix missing backslash in pattern 5 years ago
Kim Alvefur 6e037dc045 util.format: Change formatting of nil values to avoid looking like XML 5 years ago
Kim Alvefur 3f1d93bb4e util.format: Escape ASCII control characters in output 5 years ago
Kim Alvefur 2661a6f5a3 util.format: Handle integer formats the same way on Lua versions without integer support 7 years ago
Kim Alvefur 236abc4afe util.format: Handle formats expecting an integer in Lua 5.3+ (fixes #1371) 7 years ago
Waqas Hussain 347f3ab6a3 util.format: A string.format wrapper that gracefully handles invalid arguments 8 years ago
Kim Alvefur 2facc56274 util.format: Import unpack from table lib in Lua 5.2+ 8 years ago
Kim Alvefur 0c4ad0fdbc util.format: Move tests to spec/ 8 years ago
Kim Alvefur 1438a38845 util: Various minor changes to please [luacheck] 8 years ago
Kim Alvefur 177420df39 util.format: Serialize values for the %q format 7 years ago
Kim Alvefur 01deb521fd util.format: Use pack from util.table 7 years ago
Kim Alvefur d007771f8d util.format: Tweak how nil values are handled 7 years ago