wea.split: Standardise comment

This commit is contained in:
Starbeamrainbowlabs 2021-05-29 22:49:14 +01:00
parent f7ecb84da4
commit 1e677c1f3f
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -42,15 +42,12 @@ function worldeditadditions.gsplit(text, pattern, plain)
end
-- split: split a string into substrings separated by a pattern.
--
-- Parameters:
-- text (string) - the string to iterate over
-- pattern (string) - the separator pattern
-- plain (boolean) - if true (or truthy), pattern is interpreted as a plain
-- string, not a Lua pattern
--
-- Returns: table (a sequence table containing the substrings)
-- Split a string into substrings separated by a pattern.
-- @param text string The string to iterate over
-- @param pattern string The separator pattern
-- @param plain boolean If true (or truthy), pattern is interpreted as a
-- plain string, not a Lua pattern
-- @returns table A sequence table containing the substrings
function worldeditadditions.split(text, pattern, plain)
local ret = {}
for match in worldeditadditions.gsplit(text, pattern, plain) do