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

@ -4,7 +4,6 @@
-- @param rem_dups bool Remove duplicate characters
-- @returns table A sequence table containing the substrings
function worldeditadditions.tochars(text,sort,rem_dups)
--function tochars(text,s,d)
local t, set = {}, {}
if rem_dups then
text:gsub(".",function(c) set[c] = true end)