mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-29 01:29:31 +00:00
[language] allow multiline expression between (), [] and {}
This commit is contained in:
parent
1ea06c63eb
commit
78f3c6448e
44 changed files with 291 additions and 147 deletions
|
|
@ -13,9 +13,11 @@ local common = {
|
|||
trim = function(str)
|
||||
return str:match("^%s*(.-)%s*$")
|
||||
end,
|
||||
-- format ansi colored string
|
||||
fmt = function(str, ...)
|
||||
return ansicolors(str):format(...)
|
||||
end,
|
||||
-- generate a uuidv4
|
||||
uuid = function()
|
||||
return ("xxxxxxxx-xxxx-4xxx-Nxxx-xxxxxxxxxxxx") -- version 4
|
||||
:gsub("N", math.random(0x8, 0xb)) -- variant 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue