mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-02-25 12:33:45 +01:00
Update --remove old tochars syntax
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user