mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 09:03:01 +00:00
Update --remove old tochars syntax
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
parent
e592e6746f
commit
a40b65af3e
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue