mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-12 08:08:30 +02: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