Fix docs for split/0
This commit is contained in:
1 parent
60d1ecb58a
commit
d630597e87
1 file changed
+3
-8
@@ -1297,8 +1297,8 @@ sections:
|
|||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: 'split(", ")'
|
- program: 'split(", ")'
|
||||||
input: '"a, b,c,d, e"'
|
input: '"a, b,c,d, e, "'
|
||||||
output: ['["a","b,c,d","e"]']
|
output: ['["a","b,c,d","e",""]']
|
||||||
|
|
||||||
- title: "`join(str)`"
|
- title: "`join(str)`"
|
||||||
body: |
|
body: |
|
||||||
@@ -1935,12 +1935,7 @@ sections:
|
|||||||
- title: "`split(regex; flags)`"
|
- title: "`split(regex; flags)`"
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
For backwards compatibility, `split` emits an array of the strings
|
For backwards compatibility, `split` splits on a string, not a regex.
|
||||||
corresponding to the successive segments of the input string after it
|
|
||||||
has been split at the boundaries defined by the regex and any
|
|
||||||
specified flags. The substrings corresponding to the boundaries
|
|
||||||
themselves are excluded. If regex is the empty string, then the first
|
|
||||||
match will be the empty string.
|
|
||||||
|
|
||||||
example:
|
example:
|
||||||
- program: 'split(", *"; null)'
|
- program: 'split(", *"; null)'
|
||||||
|
|||||||
Reference in new issue
Block a user