mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-10-13 15:54:20 +00:00
Improved lume.split()'s README.md section for clarity
This commit is contained in:
parent
ad34f6ce33
commit
d69f419f5a
@ -227,9 +227,9 @@ lume.deserialize("{1, 2, 3}") -- Returns {1, 2, 3}
|
|||||||
```
|
```
|
||||||
|
|
||||||
### lume.split(str [, sep])
|
### lume.split(str [, sep])
|
||||||
Returns an array of the words in the string `str`. If `sep` is provided then
|
Returns an array of the words in the string `str`. If `sep` is provided it is
|
||||||
consecutive delimiters are not grouped together and are deemed to delimit empty
|
used as the delimiter, consecutive delimiters are not grouped together and will
|
||||||
strings.
|
delimit empty strings.
|
||||||
```lua
|
```lua
|
||||||
lume.split("One two three") -- Returns {"One", "two", "three"}
|
lume.split("One two three") -- Returns {"One", "two", "three"}
|
||||||
lume.split("a,b,,c", ",") -- Returns {"a", "b", "", "c"}
|
lume.split("a,b,,c", ",") -- Returns {"a", "b", "", "c"}
|
||||||
|
Loading…
Reference in New Issue
Block a user