Update --remove old tochars syntax

Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
VorTechnix 2021-06-25 16:29:47 -07:00 committed by GitHub
parent e592e6746f
commit a40b65af3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)