mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-12 08:08:30 +02:00
wea.split: Standardise comment
This commit is contained in:
parent
f7ecb84da4
commit
1e677c1f3f
@ -42,15 +42,12 @@ function worldeditadditions.gsplit(text, pattern, plain)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- split: split a string into substrings separated by a pattern.
|
-- Split a string into substrings separated by a pattern.
|
||||||
--
|
-- @param text string The string to iterate over
|
||||||
-- Parameters:
|
-- @param pattern string The separator pattern
|
||||||
-- text (string) - the string to iterate over
|
-- @param plain boolean If true (or truthy), pattern is interpreted as a
|
||||||
-- pattern (string) - the separator pattern
|
-- plain string, not a Lua pattern
|
||||||
-- plain (boolean) - if true (or truthy), pattern is interpreted as a plain
|
-- @returns table A sequence table containing the substrings
|
||||||
-- string, not a Lua pattern
|
|
||||||
--
|
|
||||||
-- Returns: table (a sequence table containing the substrings)
|
|
||||||
function worldeditadditions.split(text, pattern, plain)
|
function worldeditadditions.split(text, pattern, plain)
|
||||||
local ret = {}
|
local ret = {}
|
||||||
for match in worldeditadditions.gsplit(text, pattern, plain) do
|
for match in worldeditadditions.gsplit(text, pattern, plain) do
|
||||||
|
Loading…
Reference in New Issue
Block a user