Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.format: Allow newlines but ensure following lines are indented | Kim Alvefur | 2021-07-03 | 1 | -1/+1 |
| | | | | | This should a) prevent injection of text that looks like legitimate log lines and b) not mangle tracebacks. | ||||
* | util.format: Fix missing backslash in pattern | Kim Alvefur | 2021-07-03 | 1 | -1/+1 |
| | | | | | Made the pattern match a longer range than intended, but with no effect since those characters are not present in the 'control_symbols' table. | ||||
* | util.format: Change formatting of nil values to avoid looking like XML | Kim Alvefur | 2021-06-29 | 1 | -2/+2 |
| | |||||
* | util.format: Escape ASCII control characters in output | Kim Alvefur | 2021-06-15 | 1 | -1/+16 |
| | | | | | | | This should offer some protection against doing evil things to terminals. Doesn't protect against pure broken UTF-8 garbage however. See #734 | ||||
* | util.format: Handle integer formats the same way on Lua versions without ↵ | Kim Alvefur | 2019-05-30 | 1 | -2/+5 |
| | | | | integer support | ||||
* | util.format: Handle formats expecting an integer in Lua 5.3+ (fixes #1371) | Kim Alvefur | 2019-05-30 | 1 | -0/+6 |
| | |||||
* | util.format: Serialize values for the %q format | Kim Alvefur | 2018-10-12 | 1 | -1/+5 |
| | | | | Improves eg debug logs | ||||
* | util.format: Use pack from util.table | Kim Alvefur | 2018-12-08 | 1 | -2/+3 |
| | |||||
* | util.format: Tweak how nil values are handled | Kim Alvefur | 2018-11-28 | 1 | -5/+4 |
| | | | | Because [<nil>] seems exsessive | ||||
* | util.format: Import unpack from table lib in Lua 5.2+ | Kim Alvefur | 2017-11-23 | 1 | -1/+1 |
| | |||||
* | util.format: Move tests to spec/ | Kim Alvefur | 2017-11-10 | 1 | -10/+0 |
| | |||||
* | util: Various minor changes to please [luacheck] | Kim Alvefur | 2017-11-10 | 1 | -4/+4 |
| | |||||
* | util.format: A string.format wrapper that gracefully handles invalid arguments | Waqas Hussain | 2017-09-10 | 1 | -0/+74 |