mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
Update --remove old tochars syntax
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
parent
e592e6746f
commit
a40b65af3e
@ -4,7 +4,6 @@
|
|||||||
-- @param rem_dups bool Remove duplicate characters
|
-- @param rem_dups bool Remove duplicate characters
|
||||||
-- @returns table A sequence table containing the substrings
|
-- @returns table A sequence table containing the substrings
|
||||||
function worldeditadditions.tochars(text,sort,rem_dups)
|
function worldeditadditions.tochars(text,sort,rem_dups)
|
||||||
--function tochars(text,s,d)
|
|
||||||
local t, set = {}, {}
|
local t, set = {}, {}
|
||||||
if rem_dups then
|
if rem_dups then
|
||||||
text:gsub(".",function(c) set[c] = true end)
|
text:gsub(".",function(c) set[c] = true end)
|
||||||
|
Loading…
Reference in New Issue
Block a user