Restore split/1; don't use regexp (fix #576)
This commit is contained in:
1 parent
07d8d5c5ef
commit
1796a716ea
3 files changed
+7
-11
No files matched your search
@@ -1736,7 +1736,7 @@ sections:
|
||||
input: ("", "")
|
||||
output: ['[]', '[]']
|
||||
|
||||
- title: "`split(regex)`, `split(regex; flags)`"
|
||||
- title: "`split(regex; flags)`"
|
||||
body: |
|
||||
|
||||
For backwards compatibility, `split` emits an array of the strings
|
||||
@@ -1746,11 +1746,8 @@ sections:
|
||||
themselves are excluded. If regex is the empty string, then the first
|
||||
match will be the empty string.
|
||||
|
||||
`split(regex)` can be thought of as a wrapper around `splits(regex)`,
|
||||
and similarly for `split(regex; flags)`.
|
||||
|
||||
example:
|
||||
- program: 'split(", *")'
|
||||
- program: 'split(", *"; null)'
|
||||
input: '"ab,cd, ef"'
|
||||
output: ['"ab","cd","ef"']
|
||||
|
||||
|
||||
Reference in new issue
Block a user